LivecastViewer

cn.tee3.avd

## 类 LivecastViewer

- java.lang.Object
- - cn.tee3.avd.Livecast
  - - cn.tee3.avd.LivecastViewer

-     public class LivecastViewer
      extends Livecast

  直播观众接口类 直播观众接口定义了直播观众对象创建、直播观看和连麦操作。

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static interface` | `LivecastViewer.Listener` 直播观众回调接口类 直播观众回调接口定义了直播观众的rtmp播放和对接切换等相关通知。
    `protected class` | `LivecastViewer.ViewerListenerHandler`

    - ### 从类继承的嵌套类/接口 cn.tee3.avd.Livecast

      `Livecast.ListenerHandler, Livecast.LivecastStatus, Livecast.SDKListener`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected LivecastViewer.Listener` | `listener4cb2`
    `protected java.lang.String` | `mPlayUrl`
    `protected VideoRenderer` | `mRender`

    - ### 从类继承的字段 cn.tee3.avd.Livecast

      `_netProber, listener4cb, listener4native, listenerHandler, msg_onDialogueResult, msg_onLivecastStatus, msg_onPublishResult, msg_onRtmpPlay, msg_onRtmpStop, nativeListener, nativeobj, rooms`

  - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `LivecastViewer(java.lang.String roomId)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `dialogue()` 与主播连麦对话
    `protected void` | `dispose()`
    `protected boolean` | `initHandler()`
    `int` | `setBroadcasterId(java.lang.String broadcasterId)` 设置直播房间主播Id
    `int` | `setListener2(LivecastViewer.Listener listener)` 设置观众房间回调接口
    `int` | `watchRoom(java.lang.String playUrl, VideoRenderer render)` 进入直播房间观看

    - ### 从类继承的方法 cn.tee3.avd.Livecast

      `beginNetProber, captureImage, clearRooms, destoryRoom, getLiveStatus, getOption, getRoomId, getUserManager, hangup, isDialogue, muteMicrophone, nativeaddLiveSubVideo, nativeautoLayoutParams, nativecaptureImage, nativeclearLiveSubVideos, nativeCreateListener, nativedialogue, nativeFreeListener, nativegetLiveStatus, nativegetMUserManager, nativegetPublishedVideos, nativegetRoomId, nativehangup, nativeisDialogue, nativekickoutUser, nativemainbdsetListener2, nativemuteMicrophone, nativeobtain, nativepublish, nativereConnect, nativerelease, nativeremoveLiveSubVideo, nativergetOption, nativersetOption, nativerswitchCamera, nativesetBroadcasterId, nativesetListener, nativesetLiveMainVideo, nativesetLiveVideoBackgroud, nativesetLiveVideoScaleType, nativesetLiveVideoTypeaSize, nativesetVideoSource, nativeunpublish, nativeupdateLiveSubVideo, nativeviewersetListener2, nativewatchRoom, obtain, setListener, setOption, setVideoSource, switchCamera`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### mPlayUrl

          protected java.lang.String mPlayUrl

    - #### mRender

          protected VideoRenderer mRender

    - #### listener4cb2

          protected LivecastViewer.Listener listener4cb2

  - ### 构造器详细资料

    - #### LivecastViewer

          protected LivecastViewer(java.lang.String roomId)

  - ### 方法详细资料

    - #### setListener2

          public int setListener2(LivecastViewer.Listener listener)

      设置观众房间回调接口
      返回:
        返回错误代码。
      另请参阅:
        `LivecastViewer.Listener`

    - #### setBroadcasterId

          public int setBroadcasterId(java.lang.String broadcasterId)

      设置直播房间主播Id

    - #### watchRoom

          public int watchRoom(java.lang.String playUrl,
                               VideoRenderer render)

      进入直播房间观看
      返回:
        返回错误代码。

    - #### dialogue

          public int dialogue()

      与主播连麦对话
      返回:
        返回错误代码。

    - #### dispose

          protected void dispose()

      覆盖:
        `dispose` 在类中 `Livecast`

    - #### initHandler

          protected boolean initHandler()

      覆盖:
        `initHandler` 在类中 `Livecast`