OpenTokFlutter class

This class takes the OpenTok config and connects with platform side.

This class also handles platform callbacks.

Implemented types

Constructors

OpenTokFlutter.new(VideoConfig config, {void onUpdate(ConnectionStateCallback)?})
Create OpenTokFlutter class with necessary config values and register a callback for connection status update. VideoConfig contains API key, Session Id & Token.

Properties

hashCode int
The hash code for this object.
no setterinherited
onUpdate → void Function(ConnectionStateCallback)?
A callback to notify client about new connection state. returns ConnectionState enum & an optional error description.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

endSession() Future<void>
Ends the connected opentok session.
initSession() Future<void>
Initiates a opentok session with the given VideoConfig value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPause() Future<void>
Pauses the session including camera & audio.
onResume() Future<void>
Resumes the session.
onStateUpdate(ConnectionStateCallback connectionState) → void
Returns new state from platform side.
override
onStop() Future<void>
Forcefully releases hardware resources (e.g. camera, microphone etc.) from using.
toggleAudio(bool enabled) Future<void>
Toggle microphone on/off.
toggleCamera() Future<void>
Toggle/Swap between front & back camera.
toggleVideo(bool enabled) Future<void>
Toggles video on/off.
toString() String
A string representation of this object.
inherited

Operators

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