PlaybackConfig class

Inheritance

Constructors

PlaybackConfig({required String token, required String classId, required String userId, bool offlineMode = false, PlayBackEnvEnum env = PlayBackEnvEnum.production, String? classOriginalName, String? nativeSdkVersion, bool autoPlayOnReady = false, int? sdkAppId, int? defaultStartTimeMs, WhiteboardPlaybackMode whiteboardMode = WhiteboardPlaybackMode.stream, int? version})

Properties

autoPlayOnReady bool
页面 ready 后是否自动开始播放(主时间轴 + 老师视频)
final
classId String
final
classOriginalName String?
final
defaultStartTimeMs int?
默认起播时间(毫秒,可选)。非空且 > 0 时回放从该位置开始;为 null 或 <= 0 时沿用本地缓存进度。 优先级高于本地缓存(playback_progress/*)。
final
env PlayBackEnvEnum
final
hashCode int
The hash code for this object.
no setterinherited
nativeSdkVersion String?
Native SDK 版本号(由 Native 端传入,用于 CLS 日志上报)
final
offlineMode bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkAppId int?
腾讯云 SDKAppId(可选,由接入方传入)。在线回放白板以本地模式初始化, 提前拿到 sdkAppId 即可在 metadata 返回前就发起 initBoard,省去等待大包体 userSig 的串行耗时。
final
token String
final
userId String
final
version int?
回放编辑版本号(可选)。null 或 0 时不传 version 参数(走主版本路由);
final
whiteboardMode WhiteboardPlaybackMode
白板回放模式:stream(默认,视频走流)、signal(信令回放)、auto(自动判断)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) PlaybackConfig
override