public class MJPGSink extends JSink
AV_SYNC_IN, BUFFER_OVERFLOW, CLOSED, CONNECT, CONNECTED, CONNECTION_TIMEOUT, DISPLAY_LOCAL, DUMP, ERROR, HTTP_AUDIO, LOCAL, MAX_BT_DROP, MAX_BT_WARN, MAX_DURATION, MIN_BT, MJPG, MKV, NO_AUDIO, NO_VIDEO, OFFSET_TIME_IN, OFFSET_TIME_OUT, OPT_PKT_SIZE, PIPE_SIZE, pipeSize, PREVIEW, RTMP, RTP, SHOW_DLG_SAVE, SHOW_ENC_DLG, SOCKET_ERROR, SOCKET_SBS, socketSendBufferSize, STARVING, TSNET, UNCONNECTED| Constructor and Description |
|---|
MJPGSink(DSFiltergraph src,
int port,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
int flags)
Creates a server socket on the given port and streams the filtergraph's video in MJPG format to clients requesting any
resource ending in ".mjpg" or accepting "image/jpeg" MIME types.
|
MJPGSink(DSFiltergraph src,
java.io.OutputStream out,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
int flags)
Streams the filtergraph's video in MJPG format to the given OutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the sink and frees all resources it allocated.
|
void |
sampleReceived(SampleBuffer inBuffer)
Called from SampleAccessFilters used by this sink.
|
create, getID, getOutputBufferSize, getOutputMediaType, propertyChange, setNetworkInterface, setSinkOption, setSocketOptionpublic MJPGSink(DSFiltergraph src, int port, DSFilterInfo videoEncoder, DSFilterInfo audioEncoder, int flags) throws java.lang.Exception
java.lang.Exceptionpublic MJPGSink(DSFiltergraph src, java.io.OutputStream out, DSFilterInfo videoEncoder, DSFilterInfo audioEncoder, int flags) throws java.lang.Exception
java.lang.Exceptionpublic void close()
JSinkpublic void sampleReceived(SampleBuffer inBuffer)
JSinksampleReceived in class JSink