public static interface WOWZSinkAPI.StreamingVideoSink extends WOWZSinkAPI.VideoSink
Modifier and Type | Method and Description |
---|---|
Handler |
getVideoSinkHandler() |
void |
onParameterSets(byte[] spsBuffer,
byte[] ppsBuffer)
Allows direct specification of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) buffers.
|
void |
onVideoConfigFrame(byte[] parameterBuffer,
int bufferLen)
Called with H.264 NAL SPS/PPS configuration data encountered by a video encoder.
|
void |
onVideoFrame(long timecode,
byte[] buffer,
int bufferLen)
Called for each frame of video produced by a video encoder.
|
isVideoEnabled, isVideoPaused, setVideoEnabled, setVideoPaused
getBroadcastConfig, getBroadcasterStatus, getStatus, prepareForBroadcast, startBroadcasting, stopBroadcasting
void onVideoConfigFrame(byte[] parameterBuffer, int bufferLen)
onParameterSets(byte[], byte[])
must be called before any video frames are sent to the video sink.parameterBuffer
- The SPS/PPS parameter data.bufferLen
- The length of parameter buffer, in bytes.void onParameterSets(byte[] spsBuffer, byte[] ppsBuffer)
onVideoConfigFrame(byte[], int)
must be called before any video frames are sent to the video sink.
Calling the getByteBuffer method of the MediaFormat
class using the "csd-0" key returns the SPS buffer;
using the "csd-1" key returns the PPS buffer.spsBuffer
- The Sequence Parameter Set buffer.ppsBuffer
- The Picture Parameter Set buffer.void onVideoFrame(long timecode, byte[] buffer, int bufferLen)
timecode
- The frame timecode, in milliseconds.buffer
- The encoded H.264 video buffer.bufferLen
- The length of the encoded H.264 video buffer, in bytes.Handler getVideoSinkHandler()
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal