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

fix: Application crash on some platforms #76

Closed
wants to merge 1 commit into from

Conversation

agajassi
Copy link

Corrects application crash issue described in See issue/75 by excluding encryptionScheme field from some older platforms.

To avoid application crash, don't add encryptionScheme field to some platforms.
@agajassi agajassi changed the title Update index.js fix: Application crash on some platforms Sep 23, 2024
@avelad
Copy link
Member

avelad commented Sep 23, 2024

@agajassi Why not disable polyfill installation in Shaka Player directly for these platforms? (https://github.com/shaka-project/shaka-player/blob/main/lib/polyfill/encryption_scheme.js#L26)

@agajassi
Copy link
Author

@agajassi Why not disable polyfill installation in Shaka Player directly for these platforms? (https://github.com/shaka-project/shaka-player/blob/main/lib/polyfill/encryption_scheme.js#L26)

It did not even occur to me to disable it from shaka player. I guess I was under the impression that these platforms need that polyfil as well. I can give it a try and run some tests. Let me do that first

@joeyparrish
Copy link
Member

If I understand correctly, it's crashing when you feed encryptionScheme into MediaKeys?

@joeyparrish
Copy link
Member

It did not even occur to me to disable it from shaka player. I guess I was under the impression that these platforms need that polyfil as well.

They don't "need" it, but if Shaka wants to filter content by encryption scheme, and encryption scheme support is not native and not polyfilled, Shaka may try to play some things that can't be played. The platform may decrypt with the right keys and the wrong scheme, feeding garbage data to the decoder.

@agajassi
Copy link
Author

If I understand correctly, it's crashing when you feed encryptionScheme into MediaKeys?

That is correct

@agajassi
Copy link
Author

agajassi commented Sep 23, 2024

They don't "need" it, but if Shaka wants to filter content by encryption scheme, and encryption scheme support is not native and not polyfilled, Shaka may try to play some things that can't be played. The platform may decrypt with the right keys and the wrong scheme, feeding garbage data to the decoder

@joeyparrish I understand what you're saying, and I agree. It makes more sense to skip the polyfill for these platforms. If in the future these platforms start supporting encryptionScheme, we can easily re-enable it.

Thank you both. 👍🏼 I will close this pr and instead open one in shaka player itself.

@agajassi
Copy link
Author

Closing this pr. This will be handled in the player repo

@agajassi agajassi closed this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants