JanusSignaler class

Constructors

JanusSignaler(String url, String protocol, int socketTimeOutMs, int keepAliveValueSec)

Properties

activePublisherStreams Map<int, Set<String>?>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamTypes Map<String, String>
getter/setter pair
subStreams Map<String, int>
getter/setter pair

Methods

attachPlugin(String pluginId, bool asPublisher) Future<void>
convertParticipantListToArray(List<Map<String, Object>> participants) Map<int?, bool?>
convertPublishersToArray(List<Publisher>? publishers) List<int>
convertSubscribersToArray(List<Subscriber>? subscribers) List<int>
destroySession() → void
detachPlugin(int? handleId) Future<void>
eventParser(WsEvent wsEvent) → void
getVideoMidForUser(int userId) String
isActive() bool
joinDialog(String dialogId, int currentUserId, String janusRole, ConferenceRole conferenceRole, bool asPublisher) Future<void>
joinDialogAsSubscriber(Set<int> feeds) Future<void>
joinPacket(String janusRole, bool asPublisher) → WsRoomPacket
joinSubscriberPacket(Set<int> feeds) → WsRoomPacket
leave(int? userId, bool asPublisher) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPacketError(WsPacket packet, String error) → void
onPacketReceived(WsPacket packet) → void
packetParser(WsPacket packet) → void
prepareLayersConfig(Map<int, int> configs) List<Map<String, dynamic>>
prepareSubStreamsConfig(Map<int, StreamType> configs) List<Map<String, dynamic>>
requestPreferredLayersForUsersStreams(Map<int, int> configs) Future<void>
requestPreferredStreamsForUsers(Map<int, StreamType> configs) Future<void>
sendAnswer(RTCSessionDescription rtcSdp, int callType, bool asPublisher) Future<void>
sendBitrateConfig(int userId, int bitrate) Future<void>
sendIceCandidate(RTCIceCandidate iceCandidate, bool asPublisher) Future<void>
sendIceCandidateComplete(bool asPublisher) Future<void>
sendKeepAlive() Future<void>
sendOffer(RTCSessionDescription rtcSdp, int callType, bool asPublisher) Future<void>
setJanusResponseEventCallback(JanusResponseEventCallback? callback) → void
startAutoSendPresence() → void
startPublish() Future<void>
startSession() Future<void>
stopAutoSendPresence() → void
subscribe(Set<int> feeds) Future<void>
toString() String
A string representation of this object.
inherited
unsubscribeFromPublishers(Map<int, Set<String>?> publishers) Future<void>
updateStreamSubscriptions(int feedId, List<Stream>? added, List<Stream>? removed) Future<void>

Operators

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

Constants

KEEP_ALIVE_PERIOD → const Duration
TAG → const String