RemoteStreamSwitch class Null safety

流切换信息

本地用户订阅的远端流触发回退策略时的流切换信息。

Constructors

RemoteStreamSwitch({String uid = '', bool isScreen = false, int beforeVideoIndex = 0, int afterVideoIndex = 0, bool beforeEnable = false, bool afterEnable = false, FallbackOrRecoverReason reason = FallbackOrRecoverReason.unknown})
RemoteStreamSwitch.fromMap(Map map)
factory

Properties

afterEnable → bool
流切换后是否有视频流
final
afterVideoIndex → int
流切换后订阅视频流的分辨率对应的索引
final
beforeEnable → bool
流切换前是否有视频流
final
beforeVideoIndex → int
流切换前订阅视频流的分辨率对应的索引
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
isScreen → bool
是否是屏幕共享流
final
reason → FallbackOrRecoverReason
触发流回退的原因
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
uid → String
订阅的音视频流的发布者的用户 ID
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
inherited

Operators

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