实时音视频

  • 实时音视频 > API 文档 > Windows >QNRemoteTrack

    QNRemoteTrack

    最近更新时间:2021-09-27 11:17:23

    音视频远端 Track 基类
    Hierarchy
    Index
    Core Methods
    Core Methods
    GetSourceType
    • virtual const QNTrackSourceType GetSourceType() = 0
    • 获取 source 类型

    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
    GetKind
    • virtual const std::string& GetKind() = 0
    • 音视频类型

      Returns string
    IsMuted
    • virtual bool IsMuted() = 0
    • 是否 muted

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

      Returns bool
    SetTrackInfoChangedListener
    • virtual void SetTrackInfoChangedListener(QNTrackInfoChangedListener* listener) = 0
    • 设置当前轨道信息变化监听器

      Parameters
    SetRenderHwnd
    • virtual void SetRenderHwnd(void* hwnd) = 0
    • 设置远端视频渲染窗口句柄

      Parameters
      • hwnd: void*

        渲染窗口句柄,MFC:HWND; QT:winId

    以上内容是否对您有帮助?
  • Qvm free helper
    Close