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

doesn't work well on Safari with useNativeHlsOnSafari = false #6315

Open
kuroishi opened this issue Mar 2, 2024 · 7 comments
Open

doesn't work well on Safari with useNativeHlsOnSafari = false #6315

kuroishi opened this issue Mar 2, 2024 · 7 comments
Labels
browser: Safari Issues affecting Safari or WebKit derivatives component: HLS The issue involves Apple's HLS manifest format component: transmuxer The issue involves our built-in transmuxer priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Milestone

Comments

@kuroishi
Copy link

kuroishi commented Mar 2, 2024

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.7.11

Can you reproduce the issue with our latest release version?
yes (4.7.11)

Can you reproduce the issue with the latest code from main?
I don't know.

Are you using the demo app or your own custom app?
yes. I use the demo app.
ref.
https://shaka-player-demo.appspot.com/

If custom app, can you reproduce the issue using our demo app?
N/A

What browser and OS are you using?
Safari 17.1 (19616.2.9.11.7)
macOS Sonoma 14.1.1

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

What are the manifest and license server URIs?

e.g.
https://live-par-2-cdn-alt.livepush.io/live/bigbuckbunnyclip/index.m3u8 

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

When useNativeHlsOnSafari is true, it works well but it dosen't with false.

What did you do?

Using the manifest above, you can play it on the demo app on Safari. (https://shaka-player-demo.appspot.com/)
The playback will be choppy.

What did you expect to happen?
The playback works well.

What actually happened?

We hava a custom app too. We found that setting useNativeHlsOnSafari to true the playback works well.
But we can't get the manifest with such setting. It's inconvinient for us to do things we want. We hope that when useNativeHlsOnSafari is false the playback works well on Safari.

@kuroishi kuroishi added the type: bug Something isn't working correctly label Mar 2, 2024
@shaka-bot shaka-bot added this to the v5.0 milestone Mar 2, 2024
@joeyparrish joeyparrish added priority: P2 Smaller impact or easy workaround component: HLS The issue involves Apple's HLS manifest format browser: Safari Issues affecting Safari or WebKit derivatives labels Mar 13, 2024
@mrlika
Copy link
Contributor

mrlika commented Mar 22, 2024

It looks like the same issue is with https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8. It plays as a slideshow in Safari only with useNativeHlsOnSafari = false

@avelad avelad added the component: transmuxer The issue involves our built-in transmuxer label Mar 25, 2024
@avelad avelad self-assigned this Mar 25, 2024
@dostrowski-udemy
Copy link

We are also seeing issues with Safari playback when using useNativeHlsOnSafari: false. The video and audio stutter or stall on playback with non-DRM content on Safari with 4.7.9-4.7.11.

@avelad
Copy link
Collaborator

avelad commented Apr 3, 2024

It looks like the same issue is with https://cph-p2p-msl.akamaized.net/hls/live/2000341/test/master.m3u8. It plays as a slideshow in Safari only with useNativeHlsOnSafari = false

Using manifest.hls.useSafariBehaviorForLive = false your manifest works well. I'll investigate why...

@avelad
Copy link
Collaborator

avelad commented Apr 3, 2024

@kuroishi I can reproduce the same error in Chrome with the main branch

@avelad avelad removed their assignment Apr 5, 2024
@avelad
Copy link
Collaborator

avelad commented Apr 25, 2024

It seems that your segments are no independent segments, our transmuxer does not support this case.

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Apr 25, 2024
@kuroishi
Copy link
Author

kuroishi commented Apr 26, 2024

Thanks for your reply.

I believe taht all the segments I give you above as an example are independent segments that don't refer the frames in other segments.

If you confirm no independent segments in my example above, please let me know.

What exactly should I generate as proper segments in terms of such as GOP, I, B, P frame and IDR?

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Apr 26, 2024
@avelad avelad modified the milestones: v4.8, v4.9 Apr 26, 2024
@MarianoFacundoArch
Copy link
Contributor

This might be closely related to
#6446

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 component: HLS The issue involves Apple's HLS manifest format component: transmuxer The issue involves our built-in transmuxer priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

7 participants