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

not throw error when play Widevine Stream on Safari #7855

Closed
raxxarr opened this issue Jan 9, 2025 · 3 comments
Closed

not throw error when play Widevine Stream on Safari #7855

raxxarr opened this issue Jan 9, 2025 · 3 comments
Labels
browser: Safari Issues affecting Safari or WebKit derivatives type: bug Something isn't working correctly
Milestone

Comments

@raxxarr
Copy link

raxxarr commented Jan 9, 2025

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

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

Yes

What version of Shaka Player are you using?

4.12.4/4.12.6

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?
Demo app and my custom app.

If custom app, can you reproduce the issue using our demo app?
No, because I am unable to apply certain configurations on the demo app.

What browser and OS are you using?
Mac Safari

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

https://gsjhj8.vodpackagepull-n4wi23.ap-southeast-1.ice.alibabacloudcs.com/v1/rh94aj308ev9mp5hari8xk1qxmyg7ci1/5xm61cd8dtuend7wev0czv5piwcslpli/b5r8j548syy9dk8zu1ko93m7vy7nk2xo/index.m3u8

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

{
"drm": {
"servers": {
"com.apple.fps": "https://license-global.pallycon.com/ri/licenseManager.do"
},
"advanced": {
"com.apple.fps": {
"distinctiveIdentifierRequired": false,
"persistentStateRequired": false,
"videoRobustness": "",
"audioRobustness": "",
"sessionType": "",
"serverCertificateUri": "https://license.pallycon.com/ri/fpsKeyManager.do?siteId=DEMO",
"individualizationServer": ""
}
}
}
}

What did you do?

Try to play this video on Safari.

What did you expect to happen?
Throw error: Shaka Error DRM.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE ()
Because this stream uses Widevine KeySystem and Safari doesn't support it.

What actually happened?

  • If I use com.apple.fps or com.apple.fps.1_0 as the key for DRM-related configurations, the stream plays without video or audio rendering, but the video progress bar is available and displays a duration.
    config like:
{
        "servers": {
            "com.apple.fps": "https://license-global.pallycon.com/ri/licenseManager.do"
        },
}
  • If I use fairplay as the key instead, the player throws an error of Shaka Error DRM.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE (), which is expected.
    config like:
        "servers": {
            "fairplay": "https://license-global.pallycon.com/ri/licenseManager.do"
        },

So my question is:

  • When I use com.apple.fps, I think it should throw an error?
  • What is the difference between the keys of com.apple.fps and fairplay? I see shaka-player-demo use fairplay but this is not documented if I haven't missed any.
    image

Are you planning to send a PR to fix it?
No

@raxxarr raxxarr added the type: bug Something isn't working correctly label Jan 9, 2025
@shaka-bot shaka-bot added this to the v4.13 milestone Jan 9, 2025
@avelad
Copy link
Member

avelad commented Jan 9, 2025

If we set useNativeHlsForFairPlay = false the problem does not occur, I'm afraid that Safari when using the native player does not throw any error when the manifest includes a drm that it does not support :( I don't think we can do anything to solve this when using useNativeHlsForFairPlay = true, sorry!

@tykus160 any idea?

@avelad avelad added browser: Safari Issues affecting Safari or WebKit derivatives status: waiting on response Waiting on a response from the reporter(s) of the issue labels Jan 9, 2025
@tykus160
Copy link
Member

We should report it Webkit if that's the case, I'd say video element should throw an error...

@shaka-bot
Copy link
Collaborator

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: Safari Issues affecting Safari or WebKit derivatives type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

4 participants