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
ProducerExceptionvoid streamLatencyPressure(long duration)
throws ProducerException
duration - The buffer duration in 100ns.ProducerExceptionvoid streamConnectionStale(long lastAckDuration)
throws ProducerException
lastAckDuration - The duration of time window when the last "buffering" ACK is received in 100ns.ProducerExceptionvoid fragmentAckReceived(KinesisVideoFragmentAck fragmentAck) throws ProducerException
fragmentAck - The received fragment ACK.ProducerExceptionvoid droppedFrameReport(long frameTimecode)
throws ProducerException
frameTimecode - Frame time code of the dropped frame.ProducerExceptionvoid droppedFragmentReport(long fragmentTimecode)
throws ProducerException
fragmentTimecode - Fragment time code of the dropped fragment.ProducerExceptionvoid streamErrorReport(long fragmentTimecode,
long statusCode)
throws ProducerException
fragmentTimecode - Fragment time code of the errored fragment.statusCode - Status code of the failure.ProducerExceptionvoid 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.ProducerExceptionvoid streamReady()
throws ProducerException
ProducerExceptionvoid streamClosed(long uploadHandle)
throws ProducerException
uploadHandle - The client stream upload handle.ProducerExceptionCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.