QNRemoteVideoTrack
Hierarchy
-
QNRemoteTrack
- QNRemoteVideoTrack
- QNRemoteAudioTrack
Index
Core Methods
Core Methods
GetTrackID
- GetTrackID(): string
-
获取 TrackID,仅当发布成功后,才可以获取到有效的 TrackID
Returns string
GetUserID
- GetUserID(): string
-
获取 UserID
Returns string
GetTag
- GetTag(): string
-
获取 Tag
Returns string
IsAudio
- IsAudio(): boolean
-
是否为音频 Track
Returns boolean
IsVideo
- IsVideo(): boolean
-
是否为视频 Track
Returns boolean
IsMuted
- IsMuted(): boolean
-
该 Track 是否处于静默状态
Returns boolean
IsSubscribed
- IsSubscribed(): boolean
-
该 Track 是否被订阅
Returns boolean
Play
- Play(view: QNComponentController | null, stretchMode: QNStretchMode): number
-
设置渲染窗口
Parameters-
view: QNComponentController
渲染窗口,为 null 则代表取消渲染
-
stretchMode: QNStretchMode
渲染模式,默认 StretchScaleToFit
Returns 操作是否成功,成功为 QNErrorCode.OK,失败则为相应错误码 -
文档反馈
(如有产品使用问题,请 提交工单)