pub struct BaseURL {
pub base: String,
pub serviceLocation: Option<String>,
pub byte_range: Option<String>,
pub availability_time_offset: Option<f64>,
pub availability_time_complete: Option<bool>,
pub priority: Option<u64>,
pub weight: Option<i64>,
}
Expand description
A URI string that specifies one or more common locations for Segments and other resources.
Used as a prefix for SegmentURLs. Can be specified at the level of the MPD node, or Period, AdaptationSet, Representation, and can be nested (the client should combine the prefix on MPD and on Representation, for example).
Fields§
§base: String
§serviceLocation: Option<String>
Elements with the same @serviceLocation
value are likely to have their URLs resolve to
services at a common network location, for example the same CDN.
byte_range: Option<String>
§availability_time_offset: Option<f64>
§availability_time_complete: Option<bool>
§priority: Option<u64>
Lowest value indicates the highest priority.
weight: Option<i64>
For load balancing between different base urls with the same @priority. The BaseURL to use is chosen at random by the player, with the weight of any given BaseURL being its @weight value divided by the sum of all @weight values.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BaseURL
impl<'de> Deserialize<'de> for BaseURL
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BaseURL
Auto Trait Implementations§
impl Freeze for BaseURL
impl RefUnwindSafe for BaseURL
impl Send for BaseURL
impl Sync for BaseURL
impl Unpin for BaseURL
impl UnwindSafe for BaseURL
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more