Constructors
-
JanusSipPlugin({dynamic handleId, dynamic context, dynamic transport, dynamic session})
-
Properties
-
data
↔ Stream<RTCDataChannelMessage>?
-
read / write, inherited
-
handleId
↔ int?
-
read / write, inherited
-
hashCode
→ int
-
The hash code for this object. [...]
read-only, inherited
-
localStream
↔ Stream<MediaStream?>?
-
read / write, inherited
-
messages
↔ Stream<EventMessage>?
-
read / write, inherited
-
onData
↔ Stream<RTCDataChannelState>?
-
read / write, inherited
-
plugin
↔ String?
-
read / write, inherited
-
pollingActive
↔ bool
-
read / write, inherited
-
remoteStream
↔ Stream<MediaStream>?
-
read / write, inherited
-
remoteTrack
↔ Stream<RemoteTrack>?
-
read / write, inherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
read-only, inherited
-
typedMessages
↔ Stream<TypedEvent<JanusEvent>>?
-
read / write, inherited
-
webRTCHandle
↔ JanusWebRTCHandle?
-
read / write, inherited
Methods
-
createAnswer({bool audioRecv = true, bool videoRecv = true, bool audioSend = true, bool videoSend = true})
→ Future<RTCSessionDescription>
-
This method is used to create webrtc answer, sets local description on internal PeerConnection object
It supports both style of answer creation that is plan-b and unified.
inherited
-
createNullableAnswer({bool audioRecv = true, bool videoRecv = true, bool audioSend = true, bool videoSend = true})
→ Future<RTCSessionDescription?>
-
inherited
-
createOffer({bool audioRecv = true, bool videoRecv = true, bool audioSend = true, bool videoSend = true})
→ Future<RTCSessionDescription>
-
This method is used to create webrtc offer, sets local description on internal PeerConnection object
It supports both style of offer creation that is plan-b and unified.
inherited
-
dispose()
→ Future<void>
-
This function takes care of cleaning up all the internal stream controller and timers used to make janus_client compatible with streams and polling support
inherited
-
exists(int roomId)
→ Future
-
You can check whether a room exists using the exists
inherited
-
handleRemoteJsep(RTCSessionDescription? data)
→ Future<void>
-
It allows you to set Remote Description on internal peer connection, Received from janus server
inherited
-
hangup()
→ Future<void>
-
inherited
-
init()
→ Future<void>
-
used internally for initializing plugin, exposed only to be called via JanusSession attach method.
not useful for external operations
inherited
-
initDataChannel({RTCDataChannelInit? rtcDataChannelInit})
→ Future<void>
-
this method Initialize data channel on handle's internal peer connection object.
It is mainly used for Janus TextRoom and can be used for other plugins with data channel support
inherited
-
initializeMediaDevices({bool? useDisplayMediaDevices = false, Map<String, dynamic>? mediaConstraints})
→ Future<MediaStream?>
-
method that generates MediaStream from your device camera that will be automatically added to peer connection instance internally used by janus client [...]
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onCreate()
→ void
-
inherited
-
send({dynamic data, RTCSessionDescription? jsep})
→ Future
-
This method is crucial for communicating with Janus Server's APIs it takes in data and optionally jsep for negotiating with webrtc peers
inherited
-
sendData(String message)
→ Future<void>
-
Send text message on existing text room using data channel with same label as specified during initDataChannel() method call. [...]
inherited
-
switchCamera()
→ Future<bool>
-
a utility method which can be used to switch camera of user device if it has more than one camera
inherited
-
toString()
→ String
-
A string representation of this object. [...]
inherited