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

[Android][WebView] Calls to decodingInfo or requestMediaKeySystemAccess do not resolve or reject at least without RESOURCE_PROTECTED_MEDIA_ID #7680

Closed
CHaNGeTe opened this issue Nov 27, 2024 · 0 comments · Fixed by #7682 · May be fixed by #7597
Assignees
Labels
platform: Android Issues affecting Android priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Milestone

Comments

@CHaNGeTe
Copy link
Contributor

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

If the problem is related to FairPlay, have you read the tutorial? N/A

What version of Shaka Player are you using? v4.12.2

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

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

Are you using the demo app or your own custom app? Tried both, fails on both, fails even on https://shaka-player-demo.appspot.com/support.html

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

What browser and OS are you using? Telegram WebView on Samsung Galaxy S23 Ultra (Android 14)

For embedded devices (smart TVs, etc.), what model and firmware version are you using?
Mozilla/5.0 (Linux; Android 14; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.107 Mobile Safari/537.36 Telegram-Android/11.4.2 (Samsung SM-S918B; Android 14; SDK 34; HIGH)

What are the manifest and license server URIs? N/A

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

What did you do?

Try to use shaka on Telegram's WebView on Android (I think without RESOURCE_PROTECTED_MEDIA_ID), or load https://shaka-player-demo.appspot.com/support.html
Even the DEMO https://shaka-player-demo.appspot.com/demo/ does not work in this environment
Any call to probeSupport gets hanged.

What did you expect to happen?
Calls to probeSupport not to get hanged on this environment even if the permission is not set.

What actually happened?

Calls to probeSupport get hanged.
Promise calls to decodingInfo or requestMediaKeySystemAccess do not resolve or reject on this environment.

Are you planning send a PR to fix it? Yes

@CHaNGeTe CHaNGeTe added the type: bug Something isn't working correctly label Nov 27, 2024
@shaka-bot shaka-bot added this to the v4.13 milestone Nov 27, 2024
@avelad avelad assigned CHaNGeTe and unassigned joeyparrish Nov 29, 2024
@avelad avelad added priority: P2 Smaller impact or easy workaround platform: Android Issues affecting Android labels Nov 29, 2024
avelad pushed a commit that referenced this issue Nov 29, 2024
…ystemAccess (#7682)

On some (Android) WebView environments,
decodingInfo and requestMediaKeySystemAccess will
not resolve or reject, at least if RESOURCE_PROTECTED_MEDIA_ID is not
set.
This is a workaround for that issue.

Closes #7680
avelad pushed a commit that referenced this issue Dec 4, 2024
…ystemAccess (#7682)

On some (Android) WebView environments,
decodingInfo and requestMediaKeySystemAccess will
not resolve or reject, at least if RESOURCE_PROTECTED_MEDIA_ID is not
set.
This is a workaround for that issue.

Closes #7680
avelad pushed a commit that referenced this issue Dec 4, 2024
…ystemAccess (#7682)

On some (Android) WebView environments,
decodingInfo and requestMediaKeySystemAccess will
not resolve or reject, at least if RESOURCE_PROTECTED_MEDIA_ID is not
set.
This is a workaround for that issue.

Closes #7680
joeyparrish pushed a commit that referenced this issue Dec 11, 2024
…ystemAccess (#7682)

On some (Android) WebView environments,
decodingInfo and requestMediaKeySystemAccess will
not resolve or reject, at least if RESOURCE_PROTECTED_MEDIA_ID is not
set.
This is a workaround for that issue.

Closes #7680
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Android Issues affecting Android priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Projects
None yet
4 participants