-
Notifications
You must be signed in to change notification settings - Fork 125
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
DRM: Zero filled TENC KID cause a NO_PLAYABLE_REPRESENTATION error #1458
Comments
This issue is related to #1183 |
Hi, Is a full-0 key id documented somewhere as not valid (or maybe it means here that the following media is unencrypted)? |
I don't think the zero key is not valid, but it's more about the fact that the key in TENC is not present in the All of our media are encrypted, it is just the TENC key which filled with zero. |
Turns out after checking around that a key id set to all Anyway, Because it was added for resilience, and because a |
I've upgraded RxPlayer from 3.26 to 4.0.0. It is mostly working fine, excepted a fatal error
NO_PLAYABLE_REPRESENTATION
randomly while playing the streams.After further investigation, I found that in our MP4 initialization segment, the
TENC
box has a zero filled KID. This Key ID is added to the one found in the manifestContentProtection
cenc
and disable the decipher ability of the streams.Error from the console :
![Screenshot from 2024-06-14 08-44-52](https://private-user-images.githubusercontent.com/1065103/339669174-5c9e10fe-a56d-4965-92b4-abf7e12406d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MzMxNDQsIm5iZiI6MTcxOTgzMjg0NCwicGF0aCI6Ii8xMDY1MTAzLzMzOTY2OTE3NC01YzllMTBmZS1hNTZkLTQ5NjUtOTJiNC1hYmY3ZTEyNDA2ZDAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDFUMTEyMDQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWJhZjZlYTY3OTE4YjFiZDBlMjNiZDZjZjkzNWJkYWQyMzdjZjAwYzdkMDVlMGM5MDA1MmIxNGZiNzVjYzBjOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YprIN0lIWDyHQYD7atXS-pCHMIpfDuJ9fgQoO-smyEM)
Our MP4 Fragment :
![Screenshot from 2024-06-14 08-50-47](https://private-user-images.githubusercontent.com/1065103/339667306-4cbc9439-88d6-4c13-908e-1998fdfb744a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MzMxNDQsIm5iZiI6MTcxOTgzMjg0NCwicGF0aCI6Ii8xMDY1MTAzLzMzOTY2NzMwNi00Y2JjOTQzOS04OGQ2LTRjMTMtOTA4ZS0xOTk4ZmRmYjc0NGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDFUMTEyMDQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjI5NGQ4NDMzZjI2NGVjOGUzOThlMzcyMTlkNjliMzQ3YTEwZDNhMWE3ZTY0M2RkZDU0Yjg1MGEzNzJiOWZiZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.bGaH31NVLHTAZfzJyzHQsLIKWMDH2cOSBDRXyP4p1CE)
Is there a way to disable RxPlayer to parse the init segment ?
For now I have patched
getKeyIdFromInitSegment
inparsers/containers/isobmff/utils.ts
to returnnull
if the keyId is zero and it works.The text was updated successfully, but these errors were encountered: