[][src]Struct rusoto_kinesis_video_media::GetMediaOutput

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

Fields

content_type: Option<String>

The content type of the requested media.

payload: Option<Vec<u8>>

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 PartialEq<GetMediaOutput> for GetMediaOutput[src]

impl Default for GetMediaOutput[src]

impl Clone for GetMediaOutput[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for GetMediaOutput[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self