Struct rusoto_elastictranscoder::PlayReadyDrm
source · [−]pub struct PlayReadyDrm {
pub format: Option<String>,
pub initialization_vector: Option<String>,
pub key: Option<String>,
pub key_id: Option<String>,
pub key_md_5: Option<String>,
pub license_acquisition_url: Option<String>,
}
Expand description
The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
PlayReady DRM encrypts your media files using aes-ctr
encryption.
If you use DRM for an HLSv3
playlist, your outputs must have a master playlist.
Fields
format: Option<String>
The type of DRM, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.
initialization_vector: Option<String>
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your files. The initialization vector must be base64-encoded, and it must be exactly 8 bytes long before being base64-encoded. If no initialization vector is provided, Elastic Transcoder generates one for you.
key: Option<String>
The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
, 192
, or 256
.
The key must also be encrypted by using AWS KMS.
key_id: Option<String>
The ID for your DRM key, so that your DRM license provider knows which key to provide.
The key ID must be provided in big endian, and Elastic Transcoder converts it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider.
key_md_5: Option<String>
The MD5 digest of the key used for DRM on your file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
license_acquisition_url: Option<String>
The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/
Trait Implementations
sourceimpl Clone for PlayReadyDrm
impl Clone for PlayReadyDrm
sourcefn clone(&self) -> PlayReadyDrm
fn clone(&self) -> PlayReadyDrm
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlayReadyDrm
impl Debug for PlayReadyDrm
sourceimpl Default for PlayReadyDrm
impl Default for PlayReadyDrm
sourcefn default() -> PlayReadyDrm
fn default() -> PlayReadyDrm
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PlayReadyDrm
impl<'de> Deserialize<'de> for PlayReadyDrm
sourcefn 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
sourceimpl PartialEq<PlayReadyDrm> for PlayReadyDrm
impl PartialEq<PlayReadyDrm> for PlayReadyDrm
sourcefn eq(&self, other: &PlayReadyDrm) -> bool
fn eq(&self, other: &PlayReadyDrm) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlayReadyDrm) -> bool
fn ne(&self, other: &PlayReadyDrm) -> bool
This method tests for !=
.
sourceimpl Serialize for PlayReadyDrm
impl Serialize for PlayReadyDrm
impl StructuralPartialEq for PlayReadyDrm
Auto Trait Implementations
impl RefUnwindSafe for PlayReadyDrm
impl Send for PlayReadyDrm
impl Sync for PlayReadyDrm
impl Unpin for PlayReadyDrm
impl UnwindSafe for PlayReadyDrm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more