QNRemoteVideoTrack
Hierarchy
Index
Properties
Event
Core Methods
Properties
isLowStreamEnabled
- isLowStreamEnabled: boolean
-
是否开启了大小流
isMultiProfileEnabled
- isMultiProfileEnabled: boolean
-
是否开启了大小流
Deprecated. Use isLowStreamEnabled instead.
Event
low-stream-state-changed
- (state: boolean): void
-
大小流状态变化。
值为 true 表示当前使用的是小流,反之为大流。
track.on('low-stream-state-changed',function(state){ console.log('low-stream-state-changed', state) })
Parameters-
state: boolean
大小流状态
-
profile-changed
- (profile: QNTrackProfile): void
-
大小流状态变化
track.on('profile-changed', function(profile){ console.log('profile-changed', profile) })
Deprecated. Use low-stream-state-changed instead.
Parameters-
profile: QNTrackProfile
大小流状态
-
Core Methods
setLowStream
- setLowStream(use: boolean): void
-
是否使用小流
Parameters-
use: boolean
true 表示使用小流,false 表示使用大流。
Returns void -
setProfile
- setProfile(profile: QNTrackProfile): void
-
选择订阅视频的大小流
Deprecated. Use setLowStream instead.
Parameters-
profile: QNTrackProfile
指定大小流
Returns void -
getCurrentFrameData
- getCurrentFrameData(): string
-
截取当前视频流数据
Returns string
getStats
- getStats(): QNRemoteVideoTrackStats
-
获取流状态数据
Returns QNRemoteVideoTrackStats
文档反馈
(如有产品使用问题,请 提交工单)