pub enum DrmSystem {
Common,
Widevine,
PlayReady,
}Expand description
A DRM protection system a pssh box can be generated for.
Variants§
Common
W3C Common / clear-key family (urn:mpeg:dash:mp4protection).
Widevine
Google Widevine.
PlayReady
Microsoft PlayReady.
Implementations§
Source§impl ProtectionSystem
impl ProtectionSystem
Sourcepub fn parse(name: &str) -> Option<ProtectionSystem>
pub fn parse(name: &str) -> Option<ProtectionSystem>
Parse a case-insensitive system name (as used on the command line).
Sourcepub fn pssh_box(self, key: &ContentKey, scheme: Scheme) -> Vec<u8> ⓘ
pub fn pssh_box(self, key: &ContentKey, scheme: Scheme) -> Vec<u8> ⓘ
Build the complete pssh box for this system, protecting key under
scheme.
Sourcepub fn pssh_box_ex(
self,
key: &ContentKey,
scheme: Scheme,
playready_extra: Option<&str>,
) -> Vec<u8> ⓘ
pub fn pssh_box_ex( self, key: &ContentKey, scheme: Scheme, playready_extra: Option<&str>, ) -> Vec<u8> ⓘ
Like Self::pssh_box, with optional extra PlayReady header XML
(Shaka --playready_extra_header_data) spliced into the WRMHEADER.
Trait Implementations§
Source§impl Clone for ProtectionSystem
impl Clone for ProtectionSystem
Source§fn clone(&self) -> ProtectionSystem
fn clone(&self) -> ProtectionSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtectionSystem
Source§impl Debug for ProtectionSystem
impl Debug for ProtectionSystem
impl Eq for ProtectionSystem
Source§impl PartialEq for ProtectionSystem
impl PartialEq for ProtectionSystem
impl StructuralPartialEq for ProtectionSystem
Auto Trait Implementations§
impl Freeze for ProtectionSystem
impl RefUnwindSafe for ProtectionSystem
impl Send for ProtectionSystem
impl Sync for ProtectionSystem
impl Unpin for ProtectionSystem
impl UnsafeUnpin for ProtectionSystem
impl UnwindSafe for ProtectionSystem
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