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

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

#  QNRemoteVideoTrack

最近更新时间: 2022-05-12 20:08:30

视频远端 Track 类

Hierarchy

  * [QNTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8693/QNTrack)
    * [QNLocalTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8662/QNLocalTrack)
      * [QNLocalVideoTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8663/QNLocalVideoTrack)
        * [QNCameraVideoTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8640/QNCameraVideoTrack)
        * [QNScreenVideoTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8687/QNScreenVideoTrack)
        * [QNCustomVideoTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8649/QNCustomVideoTrack)
      * [QNLocalAudioTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8660/QNLocalAudioTrack)
        * [QNMicrophoneAudioTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8667/QNMicrophoneAudioTrack)
        * [QNCustomAudioTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8646/QNCustomAudioTrack)
    * [QNRemoteTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8676/QNRemoteTrack)
      * QNRemoteVideoTrack 
      * [QNRemoteAudioTrack](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8674/QNRemoteAudioTrack)

Index

Core Methods

  * getTrackID
  * getUserID
  * getTag
  * isAudio
  * isVideo
  * isMuted
  * isSubscribed
  * setTrackInfoChangedListener
  * play
  * setProfile
  * isMultiProfileEnabled
  * setVideoFrameListener

Core Methods

getTrackID

  * String getTrackID()
  * 获取 TrackID

Returns String

getUserID

  * String getUserID()
  * 获取 UserID

Returns String

getTag

  * String getTag()
  * 获取 Tag

Returns String

isAudio

  * boolean isAudio()
  * 是否为音频 Track

Returns boolean

isVideo

  * boolean isVideo()
  * 是否为视频 Track

Returns boolean

isMuted

  * boolean isMuted()
  * 该 Track 是否处于静默状态

Returns boolean

isSubscribed

  * boolean isSubscribed()
  * 该 Track 是否被订阅

Returns boolean

setTrackInfoChangedListener

  * setTrackInfoChangedListener([QNTrackInfoChangedListener](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8820/QNTrackInfoChangedListener) listener)
  * 设置当前轨道信息变化监听器

Parameters

    * listener: [QNTrackInfoChangedListener](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8820/QNTrackInfoChangedListener)

轨道信息变化监听器

play

  * void play([QNRenderView](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8683/QNRenderView) view)
  * 播放当前视频 Track

Parameters

    * view: [QNRenderView](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8683/QNRenderView)

渲染窗口

setProfile

  * void setProfile([QNTrackProfile](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/10056/QNTrackProfile) profile)
  * 设置当前视频轨道质量等级

> 该接口仅用来设置预期的订阅流质量等级，并不代表实际的订阅等级，若实际发送端还未发送指定等级的流，则将无法订阅到指定的 profile
>
> 实际订阅质量等级的改变会通过
> [QNTrackInfoChangedListener.onVideoProfileChanged](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8820)
> 回调接口通知到上层，可按需注册该监听
>
>
> 关于视频轨道质量等级的详细内容可参阅[视频大小流](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8772/video-
> size-flow-android)使用指南文档

Parameters

    * profile: [QNTrackProfile](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/10056/QNTrackProfile)

预期订阅的视频质量

isMultiProfileEnabled

  * boolean isMultiProfileEnabled()
  * 获取当前 Track 是否开启了大小流发布

Returns boolean

setVideoFrameListener

  * void setVideoFrameListener([QNVideoFrameListener](https://developer.qiniu.com/rtc/8680/QNRemoteVideoTrack/8704/QNVideoFrameListener) listener)
  * 设置视频数据监听

Parameters

    * listener: QNVideoFrameListener 

视频数据监听接口

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