[−][src]Struct rusoto_kinesis_video_media::StartSelector
Identifies the chunk on the Kinesis video stream where you want the GetMedia
API to start returning media data. You have the following options to identify the starting chunk:
-
Choose the latest (or oldest) chunk.
-
Identify a specific chunk. You can identify a specific chunk either by providing a fragment number or timestamp (server or producer).
-
Each chunk's metadata includes a continuation token as a Matroska (MKV) tag (
AWSKINESISVIDEOCONTINUATION_TOKEN
). If your previousGetMedia
request terminated, you can use this tag value in your nextGetMedia
request. The API then starts returning chunks starting where the last API ended.
Fields
after_fragment_number: Option<String>
Specifies the fragment number from where you want the GetMedia
API to start returning the fragments.
continuation_token: Option<String>
Continuation token that Kinesis Video Streams returned in the previous GetMedia
response. The GetMedia
API then starts with the chunk identified by the continuation token.
start_selector_type: String
Identifies the fragment on the Kinesis video stream where you want to start getting the data from.
-
NOW - Start with the latest chunk on the stream.
-
EARLIEST - Start with earliest available chunk on the stream.
-
FRAGMENTNUMBER - Start with the chunk after a specific fragment. You must also specify the
AfterFragmentNumber
parameter. -
PRODUCERTIMESTAMP or SERVERTIMESTAMP - Start with the chunk containing a fragment with the specified producer or server timestamp. You specify the timestamp by adding
StartTimestamp
. -
CONTINUATIONTOKEN - Read using the specified continuation token.
If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the startSelectorType
, you don't provide any additional information in the startSelector
.
start_timestamp: Option<f64>
A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the SERVER_TIMESTAMP as the startSelectorType
. The GetMedia
API then starts with the chunk containing the fragment that has the specified timestamp.
Trait Implementations
impl Clone for StartSelector
[src]
pub fn clone(&self) -> StartSelector
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StartSelector
[src]
impl Default for StartSelector
[src]
pub fn default() -> StartSelector
[src]
impl PartialEq<StartSelector> for StartSelector
[src]
pub fn eq(&self, other: &StartSelector) -> bool
[src]
pub fn ne(&self, other: &StartSelector) -> bool
[src]
impl Serialize for StartSelector
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for StartSelector
[src]
Auto Trait Implementations
impl RefUnwindSafe for StartSelector
[src]
impl Send for StartSelector
[src]
impl Sync for StartSelector
[src]
impl Unpin for StartSelector
[src]
impl UnwindSafe for StartSelector
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,