public interface StreamCallbacks
Modifier and Type | Method and Description |
---|---|
void |
droppedFragmentReport(long fragmentTimecode)
Reports a dropped fragment for the stream.
|
void |
droppedFrameReport(long frameTimecode)
Reports a dropped frame for the stream.
|
void |
fragmentAckReceived(KinesisVideoFragmentAck fragmentAck)
Reports the received ACK.
|
void |
streamClosed(long uploadHandle)
Stream has been closed.
|
void |
streamConnectionStale(long lastAckDuration)
Reports the stream staleness when the data is read and sent but no ACKs are received.
|
void |
streamDataAvailable(long uploadHandle,
long duration,
long availableSize)
New data is available for the stream.
|
void |
streamErrorReport(long fragmentTimecode,
long statusCode)
Reports an error for the stream.
|
void |
streamLatencyPressure(long duration)
Reports the stream latency pressure.
|
void |
streamReady()
Ready to stream data.
|
void |
streamUnderflowReport()
Reports the stream underflow.
|
void streamUnderflowReport() throws ProducerException
ProducerException
void streamLatencyPressure(long duration) throws ProducerException
duration
- The buffer duration in 100ns.ProducerException
void streamConnectionStale(long lastAckDuration) throws ProducerException
lastAckDuration
- The duration of time window when the last "buffering" ACK is received in 100ns.ProducerException
void fragmentAckReceived(KinesisVideoFragmentAck fragmentAck) throws ProducerException
fragmentAck
- The received fragment ACK.ProducerException
void droppedFrameReport(long frameTimecode) throws ProducerException
frameTimecode
- Frame time code of the dropped frame.ProducerException
void droppedFragmentReport(long fragmentTimecode) throws ProducerException
fragmentTimecode
- Fragment time code of the dropped fragment.ProducerException
void streamErrorReport(long fragmentTimecode, long statusCode) throws ProducerException
fragmentTimecode
- Fragment time code of the errored fragment.statusCode
- Status code of the failure.ProducerException
void streamDataAvailable(long uploadHandle, long duration, long availableSize) throws ProducerException
uploadHandle
- The client stream upload handle.duration
- The duration of content available in the stream.availableSize
- The size of the content available in the stream.ProducerException
void streamReady() throws ProducerException
ProducerException
void streamClosed(long uploadHandle) throws ProducerException
uploadHandle
- The client stream upload handle.ProducerException
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.