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

Fairplay content not playing on 3.2.0 but works on 3.1.2 #3598

Closed
bmaniar opened this issue Aug 25, 2021 · 2 comments
Closed

Fairplay content not playing on 3.2.0 but works on 3.1.2 #3598

bmaniar opened this issue Aug 25, 2021 · 2 comments
Labels
status: archived Archived and locked; will not be updated status: duplicate A duplicate of another issue; should be closed after linking to the original issue

Comments

@bmaniar
Copy link

bmaniar commented Aug 25, 2021

Have you read the FAQ and checked for duplicate open issues?
Yes

What version of Shaka Player are you using?
3.2.0

Can you reproduce the issue with our latest release version?
Yes

Can you reproduce the issue with the latest code from master?
Yes

Are you using the demo app or your own custom app?
Custom App

If custom app, can you reproduce the issue using our demo app?
Yes

What browser and OS are you using?
Safari Version 14.1.1

What are the manifest and license server URIs?
Sent in email

What configuration are you using? What is the output of player.getConfiguration()?

{
   "drm":{
      "servers":{
         "com.widevine.alpha":"licenseUrl",
         "com.microsoft.playready":"licenseUrl",
         "com.apple.fps.1_0":"licenseUrl"
      },
      "advanced":{
         "com.apple.fps.1_0":{
            "serverCertificate":"fairPlayCertData"
         }
      }
   }
}

License Wrapping

inUseInstance.getNetworkingEngine().registerRequestFilter((type, request) => {
    if (type != net.NetworkingEngine.RequestType.LICENSE) {
        return
    }
    const originalPayload = new Uint8Array(request.body)
    const base64Payload = util.Uint8ArrayUtils.toBase64(originalPayload)
    const params = JSON.stringify({
        spc: encodeURIComponent(base64Payload),
        assetId: window.location.hostname
    })
    request.headers['Content-Type'] = 'application/json'
    request.responseType = 'arraybuffer'
    request.body = params
})

What did you do?
Tried to play Fairplay protected content on the safari browser

What did you expect to happen?
It should play the video properly

What actually happened?
We are getting error code 6010 which indicate ENCRYPTED_CONTENT_WITHOUT_DRM_INFO

Content properly plays with the same configuration on version 3.1.2.

@avelad
Copy link
Collaborator

avelad commented Aug 25, 2021

Duplicate of #3530

@TheModMaker
Copy link
Contributor

Closing as a duplicate.

@joeyparrish joeyparrish added status: duplicate A duplicate of another issue; should be closed after linking to the original issue and removed needs triage labels Sep 20, 2021
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Nov 19, 2021
@shaka-project shaka-project locked and limited conversation to collaborators Nov 19, 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 status: duplicate A duplicate of another issue; should be closed after linking to the original issue
Projects
None yet
Development

No branches or pull requests

5 participants