pub struct BaseURL {
pub base: String,
pub serviceLocation: Option<String>,
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.
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 BaseURLwhere
BaseURL: Default,
impl<'de> Deserialize<'de> for BaseURLwhere BaseURL: Default,
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
Auto Trait Implementations§
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