LiveKitProvider class

内置的 LiveKit 适配(《2.功能概述文档》第 3 节):直接依赖 pub.dev 上的 livekit_client。 LiveKit 的身份是用户名,按通话快照换成 media_uid。

Constructors

LiveKitProvider()

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → String
livekit。
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(MediaCredential credential, {required String media, DRCancelToken? cancel, int? identityToUid(String identity)?}) → Future<MediaSession>
连接媒体服务。media 为 audio 或 video(音频通话的凭据只允许发布麦克风); identityToUid 把厂商的身份换成 media_uid(LiveKit 的身份是用户名,按通话快照对应)。
load() → Future<void>
加载媒体服务的客户端库(第一次通话时调用,可以重复调用)。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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