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

Some HLS streams only start on second time #7399

Open
Robloche opened this issue Oct 4, 2024 · 0 comments
Open

Some HLS streams only start on second time #7399

Robloche opened this issue Oct 4, 2024 · 0 comments
Labels
type: bug Something isn't working correctly
Milestone

Comments

@Robloche
Copy link
Contributor

Robloche commented Oct 4, 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?
Not FairPlay-related.

What version of Shaka Player are you using?
I'm usind v4.11.17

Can you reproduce the issue with our latest release version?
Yes.

Can you reproduce the issue with the latest code from main?
I reproduced it on the nightly version.

Are you using the demo app or your own custom app?
Both.

What browser and OS are you using?
Chrome and Windows 11, both up-to-date.

What are the manifest and license server URIs?
https://hls-od-gratuit-canalplus.akamaized.net/wholesale/clair/20240911/d8_1222281_1_D8/53399/d8_1222281_1_D8.m3u8
https://hls-od-gratuit-canalplus.akamaized.net/wholesale/clair/20241001/d8_1217108_2_D8/53932/d8_1217108_2_D8.m3u8
https://hls-od-gratuit-canalplus.akamaized.net/wholesale/clair/20240923/d8_1204035_1_D8/53697/d8_1204035_1_D8.m3u8
https://hls-od-gratuit-canalplus.akamaized.net/wholesale/clair/20240920/d17_1187694_23_D17/53625/d17_1187694_23_D17.m3u8
https://hls-od-gratuit-canalplus.akamaized.net/wholesale/clair/20240920/d17_1269783_1_D17/53624/d17_1269783_1_D17.m3u8
No DRM.

What did you do?
My app plays HLS streams from different sources.
But for 2 of these sources, here's what happens when I try to play a stream:

  1. The URL loads.
  2. The play() promise never ends (no resolve and no reject).
  3. If I try again, this time, the play() succeeds and the stream plays as expected.

Here's the related code:

try {
  await shakaPlayer.load(url);
  await videoElement.play();
} catch (error) {
  console.log(`Error: ${error.message}`);
  throw error;
}

I tried it in different version on https://shaka-player-demo.appspot.com and here are the results:

v4.9.29
v4.10.21
v4.11.7
nightly

✅ means that the stream plays the first time I press the PLAY button.
❌ means that the stream plays the second time I press the PLAY button.

So, it seems that something happened between v4.9 and v4.10.

@Robloche Robloche added the type: bug Something isn't working correctly label Oct 4, 2024
@shaka-bot shaka-bot added this to the v4.12 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

2 participants