[][src]Struct rusoto_kinesis_video_media::GetMediaOutput

pub struct GetMediaOutput {
    pub content_type: Option<String>,
    pub payload: Option<Bytes>,
}

Fields

content_type: Option<String>

The content type of the requested media.

payload: Option<Bytes>

The payload Kinesis Video Streams returns is a sequence of chunks from the specified stream. For information about the chunks, see . The chunks that Kinesis Video Streams returns in the GetMedia call also include the following additional Matroska (MKV) tags:

  • AWSKINESISVIDEOCONTINUATIONTOKEN (UTF-8 string) - In the event your GetMedia call terminates, you can use this continuation token in your next request to get the next chunk where the last request terminated.

  • AWSKINESISVIDEOMILLISBEHINDNOW (UTF-8 string) - Client applications can use this tag value to determine how far behind the chunk returned in the response is from the latest chunk on the stream.

  • AWSKINESISVIDEOFRAGMENTNUMBER - Fragment number returned in the chunk.

  • AWSKINESISVIDEOSERVERTIMESTAMP - Server timestamp of the fragment.

  • AWSKINESISVIDEOPRODUCERTIMESTAMP - Producer timestamp of the fragment.

The following tags will be present if an error occurs:

  • AWSKINESISVIDEOERRORCODE - String description of an error that caused GetMedia to stop.

  • AWSKINESISVIDEOERRORID: Integer code of the error.

The error codes are as follows:

  • 3002 - Error writing to the stream

  • 4000 - Requested fragment is not found

  • 4500 - Access denied for the stream's KMS key

  • 4501 - Stream's KMS key is disabled

  • 4502 - Validation error on the stream's KMS key

  • 4503 - KMS key specified in the stream is unavailable

  • 4504 - Invalid usage of the KMS key specified in the stream

  • 4505 - Invalid state of the KMS key specified in the stream

  • 4506 - Unable to find the KMS key specified in the stream

  • 5000 - Internal error

Trait Implementations

impl Clone for GetMediaOutput[src]

impl Debug for GetMediaOutput[src]

impl Default for GetMediaOutput[src]

impl PartialEq<GetMediaOutput> for GetMediaOutput[src]

impl StructuralPartialEq for GetMediaOutput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.