public final class ZegoLiveRoomJNI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ZegoLiveRoomJNI.IExternalMediaDataSource |
static interface |
ZegoLiveRoomJNI.IExternalVideoDataSource |
Constructor and Description |
---|
ZegoLiveRoomJNI() |
Modifier and Type | Method and Description |
---|---|
static void |
enableExternalAudioData(boolean enable,
int sampleRate,
int channels) |
static void |
enableExternalRender(boolean enable) |
static void |
enableSingleAndMixRecordMode(boolean enable) |
static int |
getMaxRecordCount() |
static long |
getRecordLastMediaSideTime(java.lang.String streamID) |
static ZegoRecordStatus |
getRecordStatus(java.lang.String streamID) |
static java.lang.String |
getSDKVersion() |
static boolean |
initSDK(long appID,
byte[] appSign) |
static boolean |
loginRoom(java.lang.String roomID) |
static boolean |
logoutRoom() |
static void |
logPrint(java.lang.String log) |
static void |
onAudioDataCallback(java.lang.String streamID,
ZegoAudioFrame frame) |
static void |
onDisconnect(int errorCode,
java.lang.String roomID) |
static void |
onExternalMediaDataSource(java.lang.String streamID,
ZegoLiveRoomJNI.IExternalMediaDataSource source) |
static void |
onExternalVideoDataSource(java.lang.String streamID,
ZegoLiveRoomJNI.IExternalVideoDataSource source) |
static void |
onIncomingVideoData(java.nio.ByteBuffer[] data,
int width,
int height,
int[] strides,
int pixelFormat,
long referenceTime,
long referenceTimeScale) |
static void |
onInitSDK(int errorCode) |
static void |
onKickOut(int reason,
java.lang.String roomID) |
static void |
onLoginRoom(int errorCode,
java.lang.String roomID) |
static void |
onLogoutRoom(int errorCode,
java.lang.String roomID) |
static void |
onMixStreamRecordUpdate(java.lang.String[] listStreamID) |
static void |
onRecordAudioFrame(ZegoAudioFrame audioFrame) |
static void |
onRecordFilePath(java.lang.String streamID,
java.lang.String filePath,
int muxerStreamType,
long startTimestamp,
long stopTimestamp) |
static void |
onRecvMediaSideInfo(java.lang.String streamID,
byte[] data) |
static void |
onSeek(java.lang.String streamID,
long offset,
int whence) |
static void |
onStreamRecordBegin(java.lang.String streamID,
java.lang.String pathAndName) |
static void |
onStreamRecordData(java.lang.String streamID,
byte[] data) |
static void |
onStreamRecordEnd(java.lang.String streamID,
java.lang.String pathAndName,
int reason) |
static void |
onStreamRecordEvent(java.lang.String streamID,
int event) |
static void |
onStreamSnapshotFilePath(int code,
java.lang.String streamID,
java.lang.String filePath) |
static void |
onStreamUpdate(int type,
ZegoStreamInfo[] listStream,
java.lang.String roomID) |
static void |
onUpdateOnlineCount(int onlineCount,
java.lang.String roomID) |
static void |
onUserUpdate(ZegoUserState[] userStates,
int updateType,
java.lang.String roomID) |
static void |
onVideoDataCallback(java.nio.ByteBuffer[] data,
java.lang.String streamID,
int width,
int height,
int[] strides,
int pixelFormat) |
static boolean |
pauseRecordMixStream() |
static boolean |
resumeRecordMixStream() |
static void |
setConfig(java.lang.String config) |
static void |
setCustomToken(java.lang.String thirdPartyToken) |
static boolean |
setFontFile(java.lang.String pathAndName) |
static boolean |
setLogDirAndSize(java.lang.String logDir,
long logFileSize) |
static void |
setMuxerCacheSize(int size) |
static void |
setMuxerOutType(int type) |
static boolean |
setUser(java.lang.String userID,
java.lang.String userName) |
static void |
setUseTestEnv(boolean bTestEnv)
Deprecated.
已废弃
|
static boolean |
startRecordMixStream(ZegoMixStreamRecordConfig config) |
static boolean |
startRecordSingleStream(java.lang.String streamID,
java.lang.String pathAndName,
int muxerStreamType,
int fragmentSeconds,
ZegoRecordSingleStreamConfig config) |
static boolean |
stopRecordMixStream() |
static boolean |
stopRecordSingleStream(java.lang.String streamID) |
static boolean |
takeStreamSnapshot(java.lang.String streamID,
java.lang.String pathAndName) |
static boolean |
unInitSDK() |
static boolean |
updateImageWaterMarkConfig(ZegoImageWaterMarkConfig config) |
static boolean |
updateInputStreamConfig(ZegoStreamConfig[] listStreamConfig) |
static void |
uploadLog() |
public static void onInitSDK(int errorCode)
public static void onLoginRoom(int errorCode, java.lang.String roomID)
public static void onLogoutRoom(int errorCode, java.lang.String roomID)
public static void onDisconnect(int errorCode, java.lang.String roomID)
public static void onStreamUpdate(int type, ZegoStreamInfo[] listStream, java.lang.String roomID)
public static void onStreamRecordBegin(java.lang.String streamID, java.lang.String pathAndName)
public static void onStreamRecordEnd(java.lang.String streamID, java.lang.String pathAndName, int reason)
public static void onStreamRecordEvent(java.lang.String streamID, int event)
public static void onStreamRecordData(java.lang.String streamID, byte[] data)
public static void onSeek(java.lang.String streamID, long offset, int whence)
public static void onVideoDataCallback(java.nio.ByteBuffer[] data, java.lang.String streamID, int width, int height, int[] strides, int pixelFormat)
public static void onAudioDataCallback(java.lang.String streamID, ZegoAudioFrame frame)
public static void onMixStreamRecordUpdate(java.lang.String[] listStreamID)
public static void onRecordFilePath(java.lang.String streamID, java.lang.String filePath, int muxerStreamType, long startTimestamp, long stopTimestamp)
public static void onExternalVideoDataSource(java.lang.String streamID, ZegoLiveRoomJNI.IExternalVideoDataSource source)
public static void onExternalMediaDataSource(java.lang.String streamID, ZegoLiveRoomJNI.IExternalMediaDataSource source)
public static void onKickOut(int reason, java.lang.String roomID)
public static void onUserUpdate(ZegoUserState[] userStates, int updateType, java.lang.String roomID)
public static void onUpdateOnlineCount(int onlineCount, java.lang.String roomID)
public static void onRecvMediaSideInfo(java.lang.String streamID, byte[] data)
public static void onStreamSnapshotFilePath(int code, java.lang.String streamID, java.lang.String filePath)
public static java.lang.String getSDKVersion()
public static boolean setLogDirAndSize(java.lang.String logDir, long logFileSize)
public static void uploadLog()
public static void setUseTestEnv(boolean bTestEnv)
public static void setConfig(java.lang.String config)
public static boolean initSDK(long appID, byte[] appSign)
public static boolean unInitSDK()
public static boolean loginRoom(java.lang.String roomID)
public static boolean setUser(java.lang.String userID, java.lang.String userName)
public static void setCustomToken(java.lang.String thirdPartyToken)
public static boolean logoutRoom()
public static int getMaxRecordCount()
public static void setMuxerOutType(int type)
public static void setMuxerCacheSize(int size)
public static void enableSingleAndMixRecordMode(boolean enable)
public static void enableExternalRender(boolean enable)
public static boolean setFontFile(java.lang.String pathAndName)
public static void enableExternalAudioData(boolean enable, int sampleRate, int channels)
public static boolean startRecordSingleStream(java.lang.String streamID, java.lang.String pathAndName, int muxerStreamType, int fragmentSeconds, ZegoRecordSingleStreamConfig config)
public static boolean stopRecordSingleStream(java.lang.String streamID)
public static boolean startRecordMixStream(ZegoMixStreamRecordConfig config)
public static boolean updateInputStreamConfig(ZegoStreamConfig[] listStreamConfig)
public static boolean updateImageWaterMarkConfig(ZegoImageWaterMarkConfig config)
public static boolean stopRecordMixStream()
public static boolean pauseRecordMixStream()
public static boolean resumeRecordMixStream()
public static ZegoRecordStatus getRecordStatus(java.lang.String streamID)
public static long getRecordLastMediaSideTime(java.lang.String streamID)
public static void logPrint(java.lang.String log)
public static void onIncomingVideoData(java.nio.ByteBuffer[] data, int width, int height, int[] strides, int pixelFormat, long referenceTime, long referenceTimeScale)
public static void onRecordAudioFrame(ZegoAudioFrame audioFrame)
public static boolean takeStreamSnapshot(java.lang.String streamID, java.lang.String pathAndName)