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

Safari HLS playback issue, works fine with native HTML5 video player in Safari #7471

Open
joeyjiron06 opened this issue Oct 23, 2024 · 6 comments
Labels
component: transmuxer The issue involves our built-in transmuxer flag: seeking PR We are actively seeking PRs for this; we do not currently expect the core team will resolve this priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Milestone

Comments

@joeyjiron06
Copy link

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

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

N/A

What version of Shaka Player are you using?

4.11.9

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?
i tried in both and the both error out with the same error

If custom app, can you reproduce the issue using our demo app?
yes

What browser and OS are you using?
Safari Mac OSX 14.5 (23F79)
Safari iOS 18.0.1

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

What are the manifest and license server URIs?
https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/why-surface-pro-9-world-class-design-labs-feature_video_en-us-AVS.m3u8?packagedStreaming=true

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

What did you do?

shaka.polyfill.installAll();

const player = new shaka.Player();
const url = 'https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/why-surface-pro-9-world-class-design-labs-feature_video_en-us-AVS.m3u8?packagedStreaming=true';

await player.attach(videoElement);
await player.load(url);

What did you expect to happen?
The player should play the whole video.

What actually happened?
The player plays the first ~16 seconds, then freezes and doesn't continue playback.
When i tested this with a native HTML5 Video element and use the same url, the entire video plays back just fine without any issues.

ScreenRecording_10-22-2024.16-51-05_1.1.mp4

Are you planning send a PR to fix it?
no

@joeyjiron06 joeyjiron06 added the type: bug Something isn't working correctly label Oct 23, 2024
@joeyparrish
Copy link
Member

I played this in the demo, and I see lots of "Possible encoding problem detected! Unexpected buffered range for reference ..."

I also see Jumping forward 1.193695 seconds because of gap starting at 16.141 and ending at 17.017, which corresponds to your 16-second playback.

@joeyparrish
Copy link
Member

Since your content uses TS and gets transmuxed, this could be related to this issue where the transmuxer creates gappy output that stalls out on Safari: #7462

@shaka-bot shaka-bot added this to the v4.12 milestone Oct 23, 2024
@joeyparrish
Copy link
Member

Someone pinged me privately to say this content has segments that do not start with an IDR frame, and that this may be an unique aspect to the issue.

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

are you saying that PR fixes this issue? happy to give more details if you neeed

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Oct 26, 2024
@joeyparrish
Copy link
Member

I asked the author if it did, and he says it does not. If that's incorrect, please let us know! You can try the latest code from main or use the nightly build from here: https://nightly-dot-shaka-player-demo.appspot.com/dist/shaka-player.compiled.js

@devinj-msft
Copy link

I asked the author if it did, and he says it does not. If that's incorrect, please let us know! You can try the latest code from main or use the nightly build from here: https://nightly-dot-shaka-player-demo.appspot.com/dist/shaka-player.compiled.js

Unfortunately, this still reproduces on Safari iOS or Mac on the latest build just released. Reproduces in the demo app also. Does not reproduce when using the native video element still.

@avelad avelad added priority: P2 Smaller impact or easy workaround component: transmuxer The issue involves our built-in transmuxer flag: seeking PR We are actively seeking PRs for this; we do not currently expect the core team will resolve this labels Oct 29, 2024
@avelad avelad modified the milestones: v4.12, v4.13 Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: transmuxer The issue involves our built-in transmuxer flag: seeking PR We are actively seeking PRs for this; we do not currently expect the core team will resolve this priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

5 participants