public static interface WZSinkAPI.StreamingVideoSink extends WZSinkAPI.VideoSink
Modifier and Type | Method and Description |
---|---|
void |
onParameterSets(byte[] spsBuffer,
byte[] ppsBuffer)
Allows direct specification of the SPS and PPS parameter set 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)
This method or onParameterSets(byte[], byte[])
must be called before any video frames are sent to the video sink
parameterBuffer
- SPS/PPS parameter databufferLen
- length of parameter buffer, in bytesvoid onParameterSets(byte[] spsBuffer, byte[] ppsBuffer)
This method or onVideoConfigFrame(byte[], int)
must be called before any video frames are sent to the video sink.
On Android, calling the getByteBuffer
method of the MediaFormat
class using the "csd-0" key returns the SPS buffer while
using the "csd-1" key returns the PPS buffer.
spsBuffer
- The Sequence Parameter Set bufferppsBuffer
- The Picture Parameter Set buffervoid onVideoFrame(long timecode, byte[] buffer, int bufferLen)
timecode
- Frame timecode, in millisecondsbuffer
- Encoded H.264 video bufferbufferLen
- Encoded H.264 video buffer length, in bytes© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal