Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentProtection not inherited from AdaptationSet if also present in Representation #230

Closed
joeyparrish opened this issue Nov 11, 2015 · 0 comments
Assignees
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@joeyparrish
Copy link
Member

Test vectors from https://github.com/Axinom/dash-test-vectors seem to put ContentProtection elements at both AdaptationSet and Representation levels.

Our parser treats ContentProtection inheritance like any other inheritance in the manifest. If Representation has it, it doesn't inherit it from AdaptationSet.

To support the test vectors from Axinom, our parser will have to treat ContentProtection specially.

NOTE: Because the Axinom license server requires special headers in the license request and they don't use a unique schemeIdUri in the manifest, their content will not play in the demo app even if this is fixed. The following would have to be used as the content protection callback:

  if (schemeIdUri.toLowerCase() == 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed') {
    return [{
      'keySystem': 'com.widevine.alpha',
      'licenseServerUrl': 'http://drm-widevine-licensing.axtest.net/AcquireLicense',
      'licensePreProcessor': function(info) {
        info.headers['X-AxDRM-Message'] = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiNjllNTQwODgtZTllMC00NTMwLThjMWEtMWViNmRjZDBkMTRlIiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImtleXMiOlt7ImlkIjoiNmU1YTFkMjYtMjc1Ny00N2Q3LTgwNDYtZWFhNWQxZDM0YjVhIn1dfX0.yF7PflOPv9qHnu3ZWJNZ12jgkqTabmwXbDWk_47tLNE';
      }
    }];
  }
@joeyparrish joeyparrish added the type: bug Something isn't working correctly label Nov 11, 2015
@joeyparrish joeyparrish self-assigned this Nov 11, 2015
@joeyparrish joeyparrish added this to the v1.6.0 milestone Nov 11, 2015
joeyparrish added a commit that referenced this issue Nov 11, 2015
Fixes #230

Change-Id: Ie1dc63de83a40c270c586f8aee98fa98c214ecb8
@shaka-project shaka-project locked and limited conversation to collaborators Mar 22, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

3 participants