public class YMFStreamManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addStream(long stream,
HardDecodeWay decoder) |
static YMFStreamManager |
instance() |
static java.nio.ByteBuffer |
mallocBytebuffer(long streamId,
int width,
int height)
called from native layer by software decoder
|
static void |
onSoftDecodedFrameArrived(long streamId,
int length,
int width,
int height,
long pts)
native层软解码器解码后的数据通过这个接口传递给JAVA层
|
static void |
onStreamEnd(long streamId) |
static void |
onStreamStart(long streamId) |
void |
registerListener(IYMFDecoderListener listener) |
void |
removeStream(long stream) |
void |
unregisterListener(IYMFDecoderListener listener) |
public static YMFStreamManager instance()
public void addStream(long stream,
HardDecodeWay decoder)
public void removeStream(long stream)
public void registerListener(IYMFDecoderListener listener)
public void unregisterListener(IYMFDecoderListener listener)
public static java.nio.ByteBuffer mallocBytebuffer(long streamId,
int width,
int height)
streamId - 视频流IDwidth - 视频宽height - 视频高public static void onSoftDecodedFrameArrived(long streamId,
int length,
int width,
int height,
long pts)
streamId - 视频流IDlength - 视频YUV数据长度width - 视频宽height - 视频高pts - 视频帧PTSpublic static void onStreamStart(long streamId)
public static void onStreamEnd(long streamId)