human: 如何处理七牛云的实时音视频QNRemoteVideoTrack

gpt: [实时音视频](https://developer.qiniu.com/rtc) > API 文档 > Windows
>QNRemoteVideoTrack

#  QNRemoteVideoTrack

最近更新时间: 2022-03-23 22:56:10

视频远端 Track 类

Hierarchy

  * [QNTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9452/QNTrack)
    * [QNLocalTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9422/QNLocalTrack)
      * [QNLocalVideoTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9424/QNLocalVideoTrack)
        * [QNCameraVideoTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9404/QNCameraVideoTrack)
        * [QNScreenVideoTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9448/QNScreenVideoTrack)
        * [QNCustomVideoTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9412/QNCustomVideoTrack)
      * [QNLocalAudioTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9420/QNLocalAudioTrack)
        * [QNMicrophoneAudioTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9433/QNMicrophoneAudioTrack)
        * [QNCustomAudioTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9409/QNCustomAudioTrack)
    * [QNRemoteTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9440/QNRemoteTrack)
      * QNRemoteVideoTrack 
      * [QNRemoteAudioTrack](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9438/QNRemoteAudioTrack)

Index

Core Methods

  * GetTrackID
  * GetUserID
  * GetTag
  * IsAudio
  * IsVideo
  * IsMuted
  * SetTrackInfoChangedListener
  * IsSubscribed
  * SetVideoFrameListener
  * Play
  * IsMultiProfileEnabled
  * SetProfile

Core Methods

GetTrackID

  * virtual const std::string& GetTrackID() = 0
  * 获取 TrackID

Returns string

GetUserID

  * virtual const std::string& GetUserID() = 0
  * 获取 UserID

Returns string

GetTag

  * virtual const std::string& GetTag() = 0
  * 获取 Tag

Returns string

IsAudio

  * virtual bool IsAudio() = 0
  * 是否为音频 track

Returns bool

IsVideo

  * virtual bool IsVideo() = 0
  * 是否为视频 track

Returns bool

IsMuted

  * virtual bool IsMuted() = 0
  * 是否 muted

Returns bool

SetTrackInfoChangedListener

  * virtual void SetTrackInfoChangedListener([QNTrackInfoChangedListener](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9453/QNTrackInfoChangedListener)* listener) = 0
  * 设置当前轨道信息变化监听器

Parameters

    * listener: [QNTrackInfoChangedListener](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9453/QNTrackInfoChangedListener)

轨道信息变化监听器

IsSubscribed

  * virtual bool IsSubscribed() = 0;
  * 该 Track 是否被订阅

Returns bool

SetVideoFrameListener

  * virtual void SetVideoFrameListener([QNVideoFrameListener](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/11326/QNVideoFrameListener)* listener) = 0
  * 设置视频数据监听

Parameters

    * listener: [QNVideoFrameListener](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/11326/QNVideoFrameListener)

视频数据监听接口

Play

  * virtual void Play(QNView& view) = 0
  * 设置渲染参数

Parameters

    * view: [QNView](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/11328/QNView)

渲染参数

IsMultiProfileEnabled

  * virtual bool IsMultiProfileEnabled() = 0
  * 获取当前 track 是否开启了大小流发布

Returns bool

SetProfile

  * virtual void SetProfile([QNTrackProfile](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9454/QNTrackProfile) profile) = 0
  * 设置当前视频轨道质量等级

Parameters

    * profile: [QNTrackProfile](https://developer.qiniu.com/rtc/9443/qnremotevideotrack/9454/QNTrackProfile)

视频质量

以上内容是否对您有帮助？