public class RTSPToRTMPConverter extends java.lang.Object implements VideoDecoder.RtspNotify, VideoDecoder.AsyncDataListener, RTMPStreamer.Listener
| Modifier and Type | Class and Description |
|---|---|
static class |
RTSPToRTMPConverter.ErrorCode |
static interface |
RTSPToRTMPConverter.Listener |
static class |
RTSPToRTMPConverter.RTMP_STATUS |
| Constructor and Description |
|---|
RTSPToRTMPConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncData(int type,
Packet packet) |
void |
closeMonitoringService() |
void |
closeRTMPStreamer() |
void |
closeRTSPDecoder() |
boolean |
disablePreview() |
void |
exit() |
RTSPToRTMPConverter.RTMP_STATUS |
getCurrentStatus() |
int |
getFrameCountInQueue() |
static RTSPToRTMPConverter |
getInstance() |
long |
getSentByteAmount() |
long |
getSentByteAmount2() |
RTSPToRTMPConverter |
init(android.os.Looper looper,
RTSPToRTMPConverter.Listener listener) |
boolean |
isRTMPWorking() |
void |
onError(RTMPStreamer.RTMPErrorCode code) |
void |
reconnectRTMP() |
void |
reset() |
void |
setEnableAutoBitrate(boolean enable) |
void |
setLockDecoder(boolean lock) |
void |
setMute(boolean muted) |
void |
startMonitoringService() |
boolean |
startRTMP(java.lang.String RTMPUrl) |
void |
startRTSPDecoder(java.lang.String RTSPUrl,
boolean disableAudio) |
void |
stop() |
public static RTSPToRTMPConverter getInstance()
public RTSPToRTMPConverter init(android.os.Looper looper, RTSPToRTMPConverter.Listener listener)
public void reset()
public boolean startRTMP(java.lang.String RTMPUrl)
public void startRTSPDecoder(java.lang.String RTSPUrl,
boolean disableAudio)
public void setMute(boolean muted)
public void startMonitoringService()
public void closeRTSPDecoder()
public void closeRTMPStreamer()
public void closeMonitoringService()
public boolean isRTMPWorking()
public void stop()
public RTSPToRTMPConverter.RTMP_STATUS getCurrentStatus()
public long getSentByteAmount()
public long getSentByteAmount2()
public int getFrameCountInQueue()
public void setLockDecoder(boolean lock)
public void setEnableAutoBitrate(boolean enable)
public void asyncData(int type,
Packet packet)
asyncData in interface VideoDecoder.AsyncDataListenerpublic boolean disablePreview()
disablePreview in interface VideoDecoder.AsyncDataListenerpublic void onError(RTMPStreamer.RTMPErrorCode code)
onError in interface RTMPStreamer.Listenerpublic void reconnectRTMP()
public void exit()
exit in interface VideoDecoder.RtspNotify