question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DASH audio playback from static manifests is not working on Safari since v3.22.0

See original GitHub issue

Hello,

I’m testing rx-player on several browsers (Chrome, Firefox, Safari) for web applications I’m working on. I transcode and scale video/audio using ffmpeg which produce a static MPD file to consume them.

Will testing I found that DASH audio playback is not working on Safari. It is working with v3.22.0 but not with latest version (v3.26.0 now).

I’ve made a repro here with details to run it: https://github.com/gtnsimon/rx-player-issue-repro

On the capture below you can see that Chrome is buffering some segments which is fine (and the playback works). But on Safari it is buffering some segments and end up fetching indefinitely the same segment range (note that stream_3.mp4 is an audio stream).

image

I’m running on macOS Catalina 10.15.7 (19H524), Chrome Version 91.0.4472.114 (Build officiel) (x86_64) , Firefox 89.0.2 (64 bits) and Safari Version 14.0.3 (15610.4.3.1.6, 15610).

EDIT: to complete my research it seems to occur only with audio segments (or video with audio). I’ve remove audio AdaptationSet from the video manifest and it works with video only. I’ve also tested an audio only manifest and it doesn’t work.

Thanks for your time

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
peaBerberiancommented, Jul 28, 2021

Hi,

I’ve notice that the first segment is being fetched 2 times on initial buffering and content is playing:

Yes as a compromise the player download those problematic segments two times. If the second time the problem happens again for the same reason, it puts that segment aside.

I chose that solution because for now I consider this a real browser issue (as there’s a sensible amount of data missing from a segment) which may in other cases be fixed by re-downloading the segment.

Nice to see that this fix/work-around works !

1reaction
gtnsimoncommented, Jul 28, 2021

Hi,

Using custom_build/v3.26.0+buffer-history1 on repro and the app I’m working on it seems to fix the issue.

I’ve notice that the first segment is being fetched 2 times on initial buffering and content is playing:

Capture d’écran 2021-07-28 à 14 17 08

I’m ok to run with this branch as a temporary fix.

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari Technology Preview Release Notes - Apple Developer
Updates to Safari Technology Preview are no longer available for macOS Big Sur. ... manifest key in manifest_version 3 extensions (this is a...
Read more >
rx-player/CHANGELOG.md at master - GitHub
Directfile: Fix long-running issues with rare "directfile" contents and some ... as audio-description audio tracks to work-around what seems to be a Safari...
Read more >
Safari with audio tag not working - Stack Overflow
One way to solve it, is to mute audio by default, and when the user "un-mutes" you can create the instance of an...
Read more >
Release Notes | Firebase - Google
Performance Monitoring replaced the Top Issues field with Recent alerts in the ... crash reports by Google Play track directly in the Crashlytics...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found