ProgrammableVideoPlugin class

Inheritance
  • Object
  • PlatformInterface
  • ProgrammableVideoPlugin

Constructors

ProgrammableVideoPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

audioNotificationStream() Stream<BaseAudioNotificationEvent>
Stream of the BaseRemoteDataTrackEvent model.
inherited
cameraStream() Stream<BaseCameraEvent>
Stream of the CameraEvent model.
connectToRoom(ConnectOptionsModel connectOptions) Future<int>
Calls native code to connect to a room.
createLocalVideoTrackWidget({bool mirror = true, Key? key}) Widget
Calls native code to create a widget displaying the LocalVideoTrack's video.
createRemoteVideoTrackWidget({required String remoteParticipantSid, required String remoteVideoTrackSid, bool mirror = true, Key? key}) Widget
Calls native code to create a widget displaying a RemoteVideoTrack's video.
createVideoTrack(LocalVideoTrackModel localVideoTrack) Future<void>
Calls native code to create video track
inherited
deviceHasReceiver() Future<bool>
Calls native code to check if the device has a receiver.
inherited
disableAudioSettings() Future
Calls native code to reset the speaker and bluetooth settings to their default values. The native layer will stop observing and managing changes to audio state.
inherited
disconnect() Future<void>
Calls native code to disconnect from a room.
enableAudioTrack(bool enable, String name) Future<bool>
Calls native code to enable the LocalAudioTrack.
enableRemoteAudioTrack(bool enable, String sid) Future<void>
Calls native code to enable playback of the RemoteAudioTrack.
enableVideoTrack(bool enabled, String name) Future<bool>
Calls native code to set the state of the local video track.
getAudioSettings() Future<Map<String, dynamic>>
Calls native code to get the current speaker and bluetooth settings.
inherited
getSources() Future<List<CameraSource>>
Calls native code for retrieving the different camera sources available.
getSpeakerphoneOn() Future<bool>
Calls native code to check if speaker mode is enabled.
getStats() Future<Map?>
Calls native code to get stats
inherited
isRemoteAudioTrackPlaybackEnabled(String sid) Future<bool>
Calls native code to check if playback is enabled for the RemoteAudioTrack.
localParticipantStream(int internalId) Stream<BaseLocalParticipantEvent>
Stream of the BaseLocalParticipantEvent model.
loggingStream() Stream
Stream of dynamic that contains all the native logging output.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publishVideoTrack(String name) Future<void>
Calls native code to publish video track
inherited
releaseVideoTrack(String name) Future<void>
Calls native code to release video track
inherited
remoteDataTrackStream(int internalId) Stream<BaseRemoteDataTrackEvent>
Stream of the BaseRemoteDataTrackEvent model.
remoteParticipantStream(int internalId) Stream<BaseRemoteParticipantEvent>
Stream of the BaseRemoteParticipantEvent model.
roomStream(int internalId) Stream<BaseRoomEvent>
Stream of the BaseRoomEvent model.
sendBuffer(ByteBuffer message, String name) Future<void>
Calls native code to send a ByteBuffer message.
sendMessage(String message, String name) Future<void>
Calls native code to send a String message.
setAudioSettings(bool speakerphoneEnabled, bool bluetoothPreferred) Future
Calls native code to set the speaker and bluetooth settings. The native layer will then observe changes to audio state and apply these settings as needed.
inherited
setNativeDebug(bool native, bool audio) Future<void>
You can listen to these logs on the loggingStream.
setSpeakerphoneOn(bool on) Future<bool>
Calls native code to set the speaker mode on or off.
setTorch(bool enabled) Future<void>
Calls native code to change the torch state.
switchCamera(CameraSource source) Future<CameraSource>
Calls native code to switch the camera.
toString() String
A string representation of this object.
inherited
unpublishVideoTrack(String name) Future<void>
Calls native code to unpublish video track
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

debug(String msg) → void
registerWith(Registrar registrar) → void