Module medea_jason::api::dart::api
source · Expand description
Re-exports
pub use crate::connection::ConnectionHandle;
pub use crate::jason::Jason;
pub use crate::media::track::local::LocalMediaTrack;
pub use crate::media::track::remote::Track as RemoteMediaTrack;
pub use crate::media::MediaManagerHandle;
pub use crate::room::RoomCloseReason;
pub use crate::room::RoomHandle;
pub use crate::rpc::ReconnectHandle;
Structs
- Constraints applicable to audio tracks.
- Constraints applicable to video tracks that are sourced from some media device.
- Constraints applicable to video tracks sourced from a screen capturing.
- Representation of a MediaDeviceInfo ONLY for input devices.
- Representation of a display source.
- MediaStreamConstraints wrapper.
Enums
- facingMode constraint.
Functions
- Disables inbound audio in the provided
connection
. - Disables inbound video in the provided
connection
. - Enables inbound audio in the provided
connection
. - Enables inbound video in the provided
connection
. - Returns the
ConnectionHandle
from theForeignClass
address. - Returns remote
Member
ID of the providedconnection
. - Sets a callback to be invoked once the provided
connection
is closed. - Sets a callback to be invoked when a quality score of the provided
connection
is updated by a server. - Sets a callback to be invoked once a new
remote::Track
is added to the providedconnection
. - Closes the provided
RoomHandle
. - Closes the provided
RoomHandle
. - Creates a new
Room
and returns itsRoomHandle
. - Returns a
MediaManagerHandle
. - Instantiates a new
Jason
interface to interact with this library. - Frees the data behind the provided opaque local track.
- Returns the
LocalMediaTrack
from theForeignClass
address. - Returns a
MediaKind::Audio
if the providedLocalMediaTrack
represents an audio track, or aMediaKind::Video
if it represents a video track. - Returns a
MediaSourceKind::Device
if the providedLocalMediaTrack
is sourced from some device (webcam/microphone), or aMediaSourceKind::Display
if it’s captured via MediaDevices.getDisplayMedia(). - Sets callback to invoke when this
LocalMediaTrack
is ended. - Returns a
media::MediaStreamTrackState::Live
if thisLocalMediaTrack
is active, or amedia::MediaStreamTrackState::Ended
if it has ended. - Returns a list of
ApiMediaDeviceDetails
objects representing available media input and devices, such as microphones, cameras, and so forth. - Returns a list of
ApiMediaDisplayDetails
objects representing available sources that can be used for screen capturing. - Returns
LocalMediaTrack
s objects, built from the providedApiMediaStreamSettings
. - Returns the current microphone volume level in percents.
- Indicates whether it’s possible to access microphone volume settings.
- Sets the microphone volume level in percents.
- Switches the current output audio device to the device with the provided
device_id
. - Sets the provided
Dart_Handle
as a callback for the Rust panic hook. - Returns the
ReconnectHandle
from theForeignClass
address. - Tries to reconnect a
Room
in a loop with a growing backoff delay. - Tries to reconnect a
Room
after the provided delay in milliseconds. - Returns the
RemoteMediaTrack
from theForeignClass
address. - Returns this
RemoteMediaTrack
’s kind (audio/video). - Returns the current general
MediaDirection
of thisRemoteMediaTrack
. - Returns this
RemoteMediaTrack
’s media source kind. - Indicate whether this
RemoteMediaTrack
is muted. - Sets callback to invoke whenever this
RemoteMediaTrack
’s generalMediaDirection
is changed. - Sets callback to invoke when this
RemoteMediaTrack
is muted. - Sets callback to invoke when this
RemoteMediaTrack
is stopped. - Sets callback to invoke when this
RemoteMediaTrack
is unmuted. - Returns the
RoomCloseReason
from theForeignClass
address. - Disables outbound audio in the provided
Room
. - Disables inbound audio in the provided
Room
. - Disables inbound video in the provided
Room
. - Disables outbound video in the provided
Room
. - Enables outbound audio in the provided
Room
. - Enables inbound audio in the provided
Room
. - Enables inbound video in the provided
Room
. - Enables outbound video in the provided
Room
. - Connects to a media server and joins the
Room
with the provided authorizationtoken
. - Mutes outbound audio in the provided
Room
. - Mutes outbound video in the provided
Room
. - Sets a callback to be invoked once the provided
Room
is closed, providing aRoomCloseReason
. - Sets a callback to be invoked once a connection with server is lost.
- Sets a callback to be invoked on local media acquisition failures.
- Sets a callback to be invoked when a new
LocalMediaTrack
is added to the providedRoom
. - Sets a callback to be invoked once a new
Connection
with some remotePeer
is established. - Updates this
Room
’sApiMediaStreamSettings
. This affects all thePeerConnection
s in thisRoom
. IfApiMediaStreamSettings
are configured for someRoom
, then thisRoom
can only send media tracks that correspond to these settings.ApiMediaStreamSettings
update will change media tracks in all sending peers, so that might cause a new getUserMedia() request to happen. - Unmutes outbound audio in the provided
Room
. - Unmutes outbound video in the provided
Room
. - Returns the
Vec<RustOpaque<LocalMediaTrack>>
from theForeignClass
address. - Returns the
Vec<ApiMediaDeviceDetails>
from theForeignClass
address. - Returns the
Vec<RustOpaque<ApiMediaDisplayDetails>>
from theForeignClass
address.
Type Definitions
- An object reference managed by the Dart VM garbage collector.