You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::KinesisVideoArchivedMedia::Types::FragmentSelector
- Inherits:
-
Struct
- Object
- Struct
- Aws::KinesisVideoArchivedMedia::Types::FragmentSelector
- Defined in:
- (unknown)
Overview
When passing FragmentSelector as input to an Aws::Client method, you can use a vanilla Hash:
{
fragment_selector_type: "PRODUCER_TIMESTAMP", # required, accepts PRODUCER_TIMESTAMP, SERVER_TIMESTAMP
timestamp_range: { # required
start_timestamp: Time.now, # required
end_timestamp: Time.now, # required
},
}
Describes the timestamp range and timestamp origin of a range of fragments.
Only fragments with a start timestamp greater than or equal to the given start time and less than or equal to the end time are returned. For example, if a stream contains fragments with the following start timestamps:
-
00:00:00
-
00:00:02
-
00:00:04
-
00:00:06
A fragment selector range with a start time of 00:00:01 and end time of 00:00:04 would return the fragments with start times of 00:00:02 and 00:00:04.
Returned by:
Instance Attribute Summary collapse
-
#fragment_selector_type ⇒ String
The origin of the timestamps to use (Server or Producer).
-
#timestamp_range ⇒ Types::TimestampRange
The range of timestamps to return.
Instance Attribute Details
#fragment_selector_type ⇒ String
The origin of the timestamps to use (Server or Producer).
Possible values:
- PRODUCER_TIMESTAMP
- SERVER_TIMESTAMP
#timestamp_range ⇒ Types::TimestampRange
The range of timestamps to return.