-
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
Unable to play DRM video in iOS Mobile ( Safari and Chrome ) #8090
Comments
I have tested both FairPlay examples from the Shaka demo and they work fine in Safari and Chrome on iOS 18.3. I have no experience with nextjs so it has to be an issue with your content or the integration with next.js. |
Hiii @avelad . I have also tried to play the video on Shaka demo player , I have provided the same below , please check on iOS mobile browser ( Safari and Chrome ) , I am playing video on iPhone 14 plus on both browser :- |
In Safari macOS the content works, but in Safari iOS it doesn't work, in both cases using src=, if I change |
@avelad I added the same key, streaming.useNativeHlsForFairPlay = false, in player.configure, but I'm still facing the same issue. I'm getting error 3016 ("Media Failed to Load"). Can you please check why the Shaka Player demo is also unable to play the video specifically on iOS mobile browsers, while it works fine on all other devices? |
I have tried your link and changed the configuration that I mentioned and it works. I cannot be of further help t about that.... I recommend that you open a feedback assistant in Apple so that they can give you more details. Sorry... |
@avelad As you told you don't have no experience with nextjs , so I made a player in html with same drm protected video , but same is happenging getting an error ( media failed to load ) |
I have modified your page to use nightly and the problem is reproduced.
I've changed to use an asset we have in the demo, and it works fine:
I'm afraid your content is wrong, or needs to be configured with FairPlay in another way. @tykus160 do you have any another idea? |
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.13.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?
Both
If custom app, can you reproduce the issue using our demo app?
Yes
What browser and OS are you using?
iOS (Safari and Chrome)
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
Not applicable
What are the manifest and license server URIs?
I can share them via email if needed.
What did you do?
Tried to play a DRM-protected video on iOS mobile devices using Shaka Player v4.13.2.
Drm video are playing fine in desktop browsers ( Mac Safari , Mac Chrome ) , Having issue in mobile browsers
( I am playing video in iPhone 14plus )
Tested the playback on both the Shaka Player demo app and a custom Next.js implementation deployed at shaka-player-hls-1nf1.vercel.app.
Changed the manifest codec from H.265 (HEVC) to H.264 (AVC) but still encountered the same issue.
What did you expect to happen?
The DRM-protected video should play successfully on iOS devices.
What actually happened?
The video failed to load, and I received an error stating "Media failed to load" in both the Shaka Player demo app and the Next.js implementation.
Are you planning to send a PR to fix it?
No
This is my implementation of shaka player with next js
return (
);
}
https://travelxp.akamaized.net/60a66806d659ded70c8f1eb6/manifest_v1_hd_28042023_1353_only_h264.m3u8 - This manifest has the H.264 (AVC)
https://travelxp.akamaized.net/60a66806d659ded70c8f1eb6/manifest_v1_hd_28042023_1353_new.m3u8 - This manifest has multiple codec
Both are unable to play in both player ( shaka demo player and shaka player with next js )
The text was updated successfully, but these errors were encountered: