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