-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Handling httpx in manifest #4146
Comments
Are you setting shaka.net.NetworkingEngine.registerScheme('httpx', shaka.net.HttpFetchPlugin.parse); |
I was sure the FairPlay is not supported with the useNativeHlsOnSafari = false. |
It was added by a PR, 6d76a13. |
Now I'm getting this one :( Player Event: Error: shaka.util.Error { My stream is not supported. |
If I'm following this discussion correctly, we don't support MediaSource-based FairPlay with TS on Safari because we use the However, recently Apple fixed that bug, and we removed the restriction against playing TS in Safari by itself. See 8a3bed7. Given that, that error condition might not be necessary anymore. Unfortunately, we don't have any FairPlay demo content, so I can't test it myself. |
I removed the mp2t restriction, trying to play, getting
I see no requests going to the drm server, also the initDataTransform is not fired. I guess it's more complicated then just removing the restriction :( |
Can you try using the latest code from the main branch, rather than a release version? We'll be releasing v4.0 from main soon. |
Trying.
|
That was fixed last night. Apologies! |
v3.1.6-master-91-g648ebdb0-debug - Is this the version you are referring to? |
Invalid config, unrecognized key .drm.initDataTransform |
Yes, that was removed for v4 (prerelease). It shouldn't be necessary any more. Here are the updated FairPlay docs: https://nightly-dot-shaka-player-demo.appspot.com/docs/api/tutorial-fairplay.html |
It parses the manifest but I don't see it's trying to access the drm server.
|
And the mp2t limitation code is still in the branch (I removed it for testing purposes):
|
Ah, that restriction is different from the one we were thinking of, which was a general restriction against TS on Safari. I would have to dig into the repo history a bit to figure out why we have that restriction in place against encrypted TS. It could be as simple as "it wasn't tested", or it could be something more serious. |
Thank you! |
See: #3776
But recently the HLS implementation has been changed and also TS has been enabled in Safari (8a3bed7) Maybe it's worth trying again if it works. @valotvince can you help us with it? |
👋 I've tried a mp2t content with Fairplay encryption: it is still resulting in weird initData, and the MediaKeys session doesn't seem to send the "message" event to request a license
|
@koganiz Well it seems that TS does not work with FairPlay on MSE. Therefore only src= can be used in this case. |
@avelad Without the MSE I don't have a chance to intercept the httpx requests, they handled by Safari itself and fail because httpx is not a registered schema. I see the errors in console, but no such requests go through the network tab... |
There is nothing else we can do from the player, since this is managed by Safari. |
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 |
Hi guys,
I'm trying to implement Shaka v3.1.6 with FairPlay on Mac Safari 15, and the manifests I get have unusual httpx urls:
#EXT-X-SESSION-KEY:METHOD=SAMPLE-AES,URI="httpx://drmproxy.dgosvc.com/drmProxy/1?keyid=86BAF6DEFAA8B7CC1D20B231EEFFE5AC",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"
It looks like Safari rejects the requests even before it get to the DRM handling, I see in console multiple errors:
Failed to load resource: unsupported URL: httpx://drmproxy.dgosvc.com/drmProxy/1?keyid=86BAF6DEFAA8B7CC1D20B231EEFFE5AC
I'd like to replace the httpx by https, but I don't know how to intercept the response.
The initDataTransform in drm config is not fired.
Any ideas?
The text was updated successfully, but these errors were encountered: