public class Livecast
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
Livecast.Listener
直播回调接口类
直播回调接口定义了直播对象操作的异步返回,直播状态通知等。
|
protected class |
Livecast.ListenerHandler |
static class |
Livecast.LivecastStatus
客户端直播状态定义
|
protected class |
Livecast.SDKListener |
限定符和类型 | 字段和说明 |
---|---|
protected cn.tee3.avd.Livecast.NetworkProberLister |
_netProber |
protected Livecast.Listener |
listener4cb |
protected Livecast.SDKListener |
listener4native |
protected Handler |
listenerHandler |
protected int |
msg_onDialogueResult |
protected int |
msg_onLivecastStatus |
protected int |
msg_onPublishResult |
protected int |
msg_onRtmpPlay |
protected int |
msg_onRtmpStop |
protected long |
nativeListener |
protected long |
nativeobj |
protected static java.util.List<Livecast> |
rooms |
限定符 | 构造器和说明 |
---|---|
protected |
Livecast(java.lang.String roomId,
boolean isMainBroadcaster) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
beginNetProber() |
int |
captureImage(java.lang.String fileName,
int quality)
抓取直播图像
|
protected static void |
clearRooms() |
static void |
destoryRoom(Livecast room)
释放房间接口
|
protected void |
dispose() |
Livecast.LivecastStatus |
getLiveStatus()
获取直播房间状态
|
java.lang.String |
getOption(Room.Option type)
获取房间选项
|
java.lang.String |
getRoomId()
获取直播房间Id
|
MUserManager |
getUserManager()
获取用户管理接口
|
int |
hangup()
挂断连麦对话
|
protected boolean |
initHandler() |
boolean |
isDialogue()
判断是否连麦状态
|
int |
muteMicrophone(boolean isMute)
本地麦克风静默及取消
|
protected int |
nativeaddLiveSubVideo(java.lang.String deviceId,
int zorder,
float x,
float y,
float w,
float h) |
protected int |
nativeautoLayoutParams(boolean isTopdown,
float w,
float h,
float x_begin,
float y_begin) |
protected int |
nativecaptureImage(java.lang.String fileDir,
int quality) |
protected void |
nativeclearLiveSubVideos() |
protected static long |
nativeCreateListener(Livecast.Listener listener) |
protected int |
nativedialogue() |
protected static void |
nativeFreeListener(long nativeListener) |
protected Livecast.LivecastStatus |
nativegetLiveStatus() |
protected long |
nativegetMUserManager() |
protected java.util.List<VideoDevice> |
nativegetPublishedVideos() |
protected java.lang.String |
nativegetRoomId() |
protected int |
nativehangup() |
protected boolean |
nativeisDialogue() |
protected int |
nativekickoutUser(int reason,
java.lang.String userId) |
protected int |
nativemainbdsetListener2(long nativerender) |
protected int |
nativemuteMicrophone(boolean isMute) |
protected static long |
nativeobtain(java.lang.String roomId,
boolean isMainBroadcaster) |
protected int |
nativepublish(java.lang.String playUrl,
long nativerender) |
protected int |
nativereConnect() |
protected static void |
nativerelease(long nativeRoom) |
protected void |
nativeremoveLiveSubVideo(java.lang.String deviceId) |
protected java.lang.String |
nativergetOption(int type) |
protected int |
nativersetOption(int type,
java.lang.String svalue) |
protected int |
nativerswitchCamera() |
protected int |
nativesetBroadcasterId(java.lang.String svalue) |
protected int |
nativesetListener(long nativelistener) |
protected int |
nativesetLiveMainVideo(java.lang.String deviceId) |
protected int |
nativesetLiveVideoBackgroud(java.lang.String background) |
protected int |
nativesetLiveVideoScaleType(int scale) |
protected int |
nativesetLiveVideoTypeaSize(int layout,
int width,
int height) |
protected int |
nativesetVideoSource(long nativeobj) |
protected int |
nativeunpublish() |
protected int |
nativeupdateLiveSubVideo(java.lang.String deviceId,
int zorder,
float x,
float y,
float w,
float h) |
protected int |
nativeviewersetListener2(long nativerender) |
protected int |
nativewatchRoom(java.lang.String playUrl,
long nativerender) |
protected static Livecast |
obtain(java.lang.String roomId)
获取或创建房间接口
|
int |
setListener(Livecast.Listener listener)
设置房间回调接口
|
int |
setOption(Room.Option type,
java.lang.String svalue)
设置房间选项
|
int |
setVideoSource(FakeVideoCapturer vcapturer)
开启直播(主播)或对讲(观众)前: 设置视频的输入数据源
|
int |
switchCamera()
直播切换摄像头
|
protected long nativeobj
protected long nativeListener
protected Livecast.Listener listener4cb
protected Handler listenerHandler
protected Livecast.SDKListener listener4native
protected static java.util.List<Livecast> rooms
protected cn.tee3.avd.Livecast.NetworkProberLister _netProber
protected final int msg_onLivecastStatus
protected final int msg_onPublishResult
protected final int msg_onDialogueResult
protected final int msg_onRtmpPlay
protected final int msg_onRtmpStop
protected static Livecast obtain(java.lang.String roomId)
protected static void clearRooms()
public static void destoryRoom(Livecast room)
public int setListener(Livecast.Listener listener)
Livecast.Listener
public boolean isDialogue()
public int hangup()
public int captureImage(java.lang.String fileName, int quality)
public MUserManager getUserManager()
public Livecast.LivecastStatus getLiveStatus()
public java.lang.String getRoomId()
public int muteMicrophone(boolean isMute)
public int switchCamera()
public int setVideoSource(FakeVideoCapturer vcapturer)
public int setOption(Room.Option type, java.lang.String svalue)
public java.lang.String getOption(Room.Option type)
protected static long nativeobtain(java.lang.String roomId, boolean isMainBroadcaster)
protected static void nativerelease(long nativeRoom)
protected static long nativeCreateListener(Livecast.Listener listener)
protected static void nativeFreeListener(long nativeListener)
protected int nativesetListener(long nativelistener)
protected int nativereConnect()
protected int nativemainbdsetListener2(long nativerender)
protected int nativepublish(java.lang.String playUrl, long nativerender)
protected int nativeunpublish()
protected int nativekickoutUser(int reason, java.lang.String userId)
protected java.util.List<VideoDevice> nativegetPublishedVideos()
protected int nativesetLiveVideoTypeaSize(int layout, int width, int height)
protected int nativesetLiveVideoScaleType(int scale)
protected int nativesetLiveVideoBackgroud(java.lang.String background)
protected void nativeclearLiveSubVideos()
protected int nativesetLiveMainVideo(java.lang.String deviceId)
protected int nativeautoLayoutParams(boolean isTopdown, float w, float h, float x_begin, float y_begin)
protected int nativeaddLiveSubVideo(java.lang.String deviceId, int zorder, float x, float y, float w, float h)
protected int nativeupdateLiveSubVideo(java.lang.String deviceId, int zorder, float x, float y, float w, float h)
protected void nativeremoveLiveSubVideo(java.lang.String deviceId)
protected int nativeviewersetListener2(long nativerender)
protected int nativesetBroadcasterId(java.lang.String svalue)
protected int nativewatchRoom(java.lang.String playUrl, long nativerender)
protected int nativedialogue()
protected boolean nativeisDialogue()
protected int nativehangup()
protected Livecast.LivecastStatus nativegetLiveStatus()
protected java.lang.String nativegetRoomId()
protected int nativerswitchCamera()
protected int nativemuteMicrophone(boolean isMute)
protected int nativesetVideoSource(long nativeobj)
protected int nativecaptureImage(java.lang.String fileDir, int quality)
protected int nativersetOption(int type, java.lang.String svalue)
protected java.lang.String nativergetOption(int type)
protected long nativegetMUserManager()
protected void dispose()
protected void beginNetProber()
protected boolean initHandler()