pub enum VideoSeekResponse {
Native {
position: f64,
},
ReloadStream {
selection: StreamSelection,
seek_offset: f64,
},
}Expand description
Response for video seek operations
Variants§
Native
Use native seeking (HLS or direct stream)
ReloadStream
Reload stream from new position (transcoded non-HLS)
Fields
§
selection: StreamSelectionWhat to open, and how — transport included, so the frontend picks
its loader from a tagged enum rather than by searching the URL for
.m3u8. TRACES: UR-079 | DR-225
§
seek_offset: f64seek_offset carries the position to RESUME AT, not a base to add to
the element’s clock. The reloaded stream starts at the item’s zero —
a position on an HLS playlist makes the server 400 every segment
behind it (DR-181) — so the adapter reaches the position by seeking
the element and leaves the transcode offset at zero.
Trait Implementations§
Source§impl Debug for VideoSeekResponse
impl Debug for VideoSeekResponse
Source§impl NamedType for VideoSeekResponse
impl NamedType for VideoSeekResponse
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to [Type::inline] but returns a [NamedDataType] instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a [NamedDataType] instead.
Source§impl Serialize for VideoSeekResponse
impl Serialize for VideoSeekResponse
Source§impl Type for VideoSeekResponse
impl Type for VideoSeekResponse
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for VideoSeekResponse
Auto Trait Implementations§
impl Freeze for VideoSeekResponse
impl RefUnwindSafe for VideoSeekResponse
impl Send for VideoSeekResponse
impl Sync for VideoSeekResponse
impl Unpin for VideoSeekResponse
impl UnsafeUnpin for VideoSeekResponse
impl UnwindSafe for VideoSeekResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FunctionArg for Twhere
T: Type,
impl<T> FunctionArg for Twhere
T: Type,
§fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
Gets the type of an argument as a [
DataType]. Read more