FakeMediaSession class

Implemented types

Properties

camera ↔ bool
getter/setter pair
disconnected ↔ bool
getter/setter pair
events → Stream<MediaSessionEvent>
轨道、静音、数据消息、连接状态、令牌将到期(广播流)。
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
media → String
final
microphone ↔ bool
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sent → List<Uint8List>
final

Methods

disconnect() → Future<void>
override
emit(MediaSessionEvent event) → void
模拟媒体服务的事件。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renew(MediaCredential credential) → Future<void>
续期后的凭据:LiveKit 在下次重连时使用。
override
sendData(Uint8List data) → Future<void>
override
setCameraEnabled(bool on) → Future<void>
override
setMicrophoneEnabled(bool on) → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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