shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.18k stars 1.34k forks source link

Can Safari on MacOS play H.265 DRM VOD stream? #7300

Closed vanminhquangtri closed 1 month ago

vanminhquangtri commented 1 month ago

Have you read the Tutorials? Yes

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

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

Yes, but not find the information I need

What version of Shaka Player are you using? 4.10.6

What browser and OS are you using? Safari 17.6 on macOS Monterey

Please ask your question Everytime player load VOD stream DRM H.265, it throws error 3016. Do we need any other configuration or Safari MacOS does not support DRM H.265.

Manifest link: https://vod06-cdn.fptplay.net/POVOD/encoded/2024/08/29/SolLevante_netflix_h265_drm_v2/hls_drm/master.m3u8

Attached is the manifest content. h265.txt

Thank you

avelad commented 1 month ago

Are you using src= or MSE?

vanminhquangtri commented 1 month ago

Hello @avelad we use MSE

avelad commented 1 month ago

In my case I have always used src= for HEVC (due to my DRM provider). I leave the question open in case someone in the community knows how to answer it.

vanminhquangtri commented 1 month ago

@avelad can you please provide the sample code of used src= for HEVC, I believe this can help me. Currently my player always return error 3015. I use player.load() to player HEVC like other codecs.

avelad commented 1 month ago

With useNativeHlsForFairPlay = true you will use src= With useNativeHlsForFairPlay = false you will use MSE

vanminhquangtri commented 1 month ago

ak if so, yes, I am using src= like you. because my useNativeHlsForFairPlay is true

avelad commented 1 month ago

Since you use src=, only the Apple player is involved except to request the content license. In my case, HEVC works, I use fmp4 and there are also other qualities with AVC.

I don't know how to help you much more, I recommend that you open an issue at https://bugs.webkit.org/ so they can help you better. Sorry!

vanminhquangtri commented 1 month ago

Hello @avelad , on my Safari we can play H.265 but it is non-DRM. As I check on Apple they say Fairplay only support H.264. So can you please let me know your HEVC is non-DRM or DRM?

https://developer.apple.com/streaming/fps/FairPlayStreamingOverview.pdf

joeyparrish commented 1 month ago

@vanminhquangtri, a quick Google search turned up this quote from https://developer.apple.com/forums/thread/94080?answerId=316209022#316209022 :

Advances in HTTP Live Streaming

https://developer.apple.com/videos/play/wwdc2017/504/

HEVC is supported in hardware on A9 or better devices, and falls back to software on earlier hardware with iOS 11.

joeyparrish commented 1 month ago

Your PDF is copyright 2016, and the WWDC presentation that talks about HEVC support is from 2017.

vanminhquangtri commented 1 month ago

Thank @joeyparrish