public class DefaultStreamCallbacks extends java.lang.Object implements StreamCallbacks
| Constructor and Description |
|---|
DefaultStreamCallbacks() |
| 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 frameTimecode,
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.
|
public void streamUnderflowReport()
throws ProducerException
StreamCallbacksstreamUnderflowReport in interface StreamCallbacksProducerExceptionpublic void streamLatencyPressure(long duration)
throws ProducerException
StreamCallbacksstreamLatencyPressure in interface StreamCallbacksduration - The buffer duration in 100ns.ProducerExceptionpublic void streamConnectionStale(long lastAckDuration)
throws ProducerException
StreamCallbacksstreamConnectionStale in interface StreamCallbackslastAckDuration - The duration of time window when the last "buffering" ACK is received in 100ns.ProducerExceptionpublic void fragmentAckReceived(KinesisVideoFragmentAck fragmentAck) throws ProducerException
StreamCallbacksfragmentAckReceived in interface StreamCallbacksfragmentAck - The received fragment ACK.ProducerExceptionpublic void droppedFrameReport(long frameTimecode)
throws ProducerException
StreamCallbacksdroppedFrameReport in interface StreamCallbacksframeTimecode - Frame time code of the dropped frame.ProducerExceptionpublic void streamErrorReport(long frameTimecode,
long statusCode)
throws ProducerException
StreamCallbacksstreamErrorReport in interface StreamCallbacksframeTimecode - Fragment time code of the errored fragment.statusCode - Status code of the failure.ProducerExceptionpublic void droppedFragmentReport(long fragmentTimecode)
throws ProducerException
StreamCallbacksdroppedFragmentReport in interface StreamCallbacksfragmentTimecode - Fragment time code of the dropped fragment.ProducerExceptionpublic void streamDataAvailable(long uploadHandle,
long duration,
long availableSize)
throws ProducerException
StreamCallbacksstreamDataAvailable in interface StreamCallbacksuploadHandle - The client stream upload handle.duration - The duration of content available in the stream.availableSize - The size of the content available in the stream.ProducerExceptionpublic void streamReady()
throws ProducerException
StreamCallbacksstreamReady in interface StreamCallbacksProducerExceptionpublic void streamClosed(long uploadHandle)
throws ProducerException
StreamCallbacksstreamClosed in interface StreamCallbacksuploadHandle - The client stream upload handle.ProducerExceptionCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.