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

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

#  QNRemoteVideoTrack

最近更新时间: 2022-06-30 15:49:12

视频远端 Track 类

Hierarchy

  * [QNTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8851/QNTrack-iOS)
    * [QNLocalTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8847/QNLocalTrack-iOS)
      * [QNLocalVideoTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8849/QNLocalVideoTrack-iOS)
        * [QNCameraVideoTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8852/QNCameraVideoTrack-iOS)
        * [QNScreenVideoTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8850/QNScreenVideoTrack-iOS)
        * [QNCustomVideoTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8853/QNCustomVideoTrack-iOS)
      * [QNLocalAudioTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8854/QNLocalAudioTrack-iOS)
        * [QNMicrophoneAudioTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8855/QNMicrophoneAudioTrack-iOS)
        * [QNCustomAudioTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8856/QNCustomAudioTrack-iOS)
    * [QNRemoteTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8857/QNRemoteTrack-iOS)
      * QNRemoteVideoTrack 
      * [QNRemoteAudioTrack](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/8859/QNRemoteAudioTrack-iOS)

Index

Core Properties

  * userID
  * trackID
  * kind
  * tag
  * muted
  * isSubscribed
  * delegate
  * isMultiProfileEnabled
  * profile

Core Methods

  * play
  * setProfile

Core Properties

userID

  * @property (nonatomic, readonly) NSString *userID;
  * 一路 Track 所属用户的唯一标识

trackID

  * @property (nonatomic, strong) NSString *trackID;
  * 一路 Track 在 Server 端的唯一标识

> 发布成功时由 SDK 自动生成，订阅/Mute 等操作依据此 trackID 来确定相应的 Track

kind

  * @property (nonatomic, readonly) [QNTrackKind](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/9254) kind;
  * 标识该路 Track 是音频还是视频

tag

  * @property (nonatomic, strong) NSString *tag;
  * Track 的 tag

> 当发布多路视频 Track 时，可用 tag 来作区分

muted

  * @property (nonatomic, assign, readonly) BOOL muted;
  * 标识 Track 是否为 mute 状态

isSubscribed

  * @property (nonatomic, readonly)BOOL isSubscribed;
  * 是否被订阅，只读属性

delegate

  * @property (nonatomic, weak) id<[QNRemoteVideoTrackDelegate](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/11947/QNRemoteVideoTrackDelegate)> delegate;
  * 远端视频 Track 回调代理

isMultiProfileEnabled

  * @property (nonatomic, assign, readonly) BOOL isMultiProfileEnabled;
  * 是否开启大小流，只读属性

profile

  * @property (nonatomic, assign, readonly) [QNTrackProfile](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/9254) profile;
  * 当前大小流等级，只读属性

Core Methods

play

  * \- (void)play:(nullable [QNVideoGLView](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/11950/QNVideoGLView-iOS) *)renderView;
  * 渲染远端 Track 视图

Parameters

    * renderView: [QNVideoGLView](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/11950/QNVideoGLView-iOS)

需要渲染的视图

setProfile

  * \- (void)setProfile:([QNTrackProfile](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/9254))profile;
  * 设置大小流分辨率等级

> 该接口仅用来设置预期的订阅流质量等级，并不代表实际的订阅等级，若实际发送端还未发送指定等级的流，则将无法订阅到指定的 profile
>
> 实际订阅质量等级的改变会触发
> [QNRemoteVideoTrackDelegate.didVideoProfileChanged](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-
> iOS/11947) 回调，可按需实现相关代理
>
>
> 关于视频大小流分辨率等级的详细内容，可参阅[视频大小流](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-
> iOS/9259/multi-stream-iOS)使用指南文档

Parameters

    * profile: [QNTrackProfile](https://developer.qiniu.com/rtc/8858/QNRemoteVideoTrack-iOS/9254)

分辨率等级

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