Shaka Packager SDK
Loading...
Searching...
No Matches
Public Attributes | List of all members
shaka::media::CpixUsageRule Struct Reference

#include <cpix_parser.h>

Public Attributes

std::vector< uint8_t > key_id
 16-byte CENC key ID, from the kid attribute.
 
std::string intended_track_type
 
bool has_audio_filter = false
 
std::vector< CpixVideoFiltervideo_filters
 

Detailed Description

A usage rule from a CPIX ContentKeyUsageRuleList, mapping a key to streams by intended track type (DRM label) and/or filters.

Definition at line 75 of file cpix_parser.h.

Member Data Documentation

◆ has_audio_filter

bool shaka::media::CpixUsageRule::has_audio_filter = false

True if the rule contains an AudioFilter element, restricting the rule to audio streams.

Definition at line 83 of file cpix_parser.h.

◆ intended_track_type

std::string shaka::media::CpixUsageRule::intended_track_type

The optional intendedTrackType attribute, e.g. "SD", "HD", "AUDIO". Empty if not present.

Definition at line 80 of file cpix_parser.h.

◆ key_id

std::vector<uint8_t> shaka::media::CpixUsageRule::key_id

16-byte CENC key ID, from the kid attribute.

Definition at line 77 of file cpix_parser.h.

◆ video_filters

std::vector<CpixVideoFilter> shaka::media::CpixUsageRule::video_filters

VideoFilter elements, restricting the rule to video streams. Multiple filters form a union of their pixel ranges.

Definition at line 86 of file cpix_parser.h.


The documentation for this struct was generated from the following file: