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

HLS streaming playback speed is 1.5x for mobile devices with no option to change #3155

Closed
2 of 13 tasks
tschettervictor opened this issue Mar 19, 2024 · 8 comments · Fixed by #3734
Closed
2 of 13 tasks
Labels
bug Something isn't working hls

Comments

@tschettervictor
Copy link

tschettervictor commented Mar 19, 2024

Which version are you using?

v1.6.0

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe) FreeBSD 13.2

Describe the issue

When viewing a stream via HLS from mobile devices (ios ipados safari,brave,chrome etc) the playback speed will default to 1.5x and cannot be changed for it seems the first 10 seconds of most recent playback. If you skip back 10 seconds, or pause until there is a 10 second gap, the speed will go back to 1x also without the ability to change.
The HLS stream works fine for desktop using brave browser. Other browsers are not tested

This is with all three variants of HLS, and storing in RAM or directory.

Describe how to replicate the issue

  1. start the server
  2. publish with rtmp any stream with user that has publish permissions
  3. read with hls from mobile devices (ios, android not tested) ios version 17.3.1 and 17.4

Did you attach the server logs?

no.
There are no related logs. Logs all show properly...stream started and is muxing to HLS

Did you attach a network dump?

no

@tschettervictor
Copy link
Author

Just tested with the latest docker image. Same issue.

@tschettervictor
Copy link
Author

@aler9 Do you think this is an issue with the HLS player, or the devices themselves. I read that you can set “playbackrate” for HLS but haven’t been able to solve the issue yet.

@tschettervictor
Copy link
Author

tschettervictor commented Apr 2, 2024

Any thoughts on this? It’s fairly important to get this functioning properly, otherwise I’ll look elsewhere for a streaming solution.

@jwetzell
Copy link

jwetzell commented Jul 3, 2024

This is reproducible still in 1.8.3. I can reproduce it in some very specific scenarios (navigate away and back quickly or start/stopping the player quickly) on both mobile and desktop. This has to do with this line here as I can tweak the playback speed that the HLS player bumps to by changing that line.

@therysin
Copy link

Still reproducible in 1.8.4.

@therysin
Copy link

therysin commented Jul 12, 2024

This is reproducible still in 1.8.3. I can reproduce it in some very specific scenarios (navigate away and back quickly or start/stopping the player quickly) on both mobile and desktop. This has to do with this line here as I can tweak the playback speed that the HLS player bumps to by changing that line.

A heads up that I built an image based on that fix, and it works great. I don't have the skill to maintain, so here's a fix until this is incorporated in the actual images.

https://hub.docker.com/r/therysin/mediamtx/

Source is forked on my profile.

Copy link
Contributor

This issue is mentioned in release v1.9.1 🚀
Check out the entire changelog by clicking here

@tschettervictor
Copy link
Author

I am still experiencing this issue with the current build version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hls
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants