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

Stream stuck on loading state. Needs automatic quality throttling? #712

Open
AnderssonChristian opened this issue Apr 30, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request player Related to player (media-stream-player-js package) stale

Comments

@AnderssonChristian
Copy link
Contributor

Describe the bug
Perhaps not a bug per se, but an unexpected behavior in my opinion.

Video stream can get stuck in loading (spinner) state for a very long time under certain conditions. This seems to happen when running multiple streams simultaneously on the same page, and I assume this is bandwidth related (not sure).

In my case, I have 4 streams running on one page in parallel (10fps, 50 compression) over H264. On some clients this works fine, while on others only 1 stream works with the remaining 3 stuck in a spinner state. This page is meant for the user to choose 1 stream of the 4 provided. Once picked they are taken to the next page where the chosen stream is displayed on full FPS. Sometimes this is where the video never loads (or takes up to 5 mins to start).

Again, I assume this is bandwidth related.

In my opinion, either automatically, or via an optional parameter, video quality and/or FPS should be reduced when facing bandwidth issues (as seen for example on YouTube).
It's probably always preferred to have all streams running, even if that means ignoring explicitly set quality/fps parameters.

To Reproduce

Steps to reproduce the behavior:

  1. Create a page with enough players until one or more streams never load.

Environment (please complete the following information):

  • OS: Debian Jessie
  • Browser Chrome 88
  • MSP 4.4.0, MSL 9.2.0
@AnderssonChristian AnderssonChristian added the bug Something isn't working label Apr 30, 2021
@lekoaf
Copy link
Member

lekoaf commented May 3, 2021

I'm not sure I see this as a bug either. If you need advanced features you are probably better off using media-stream-library. The use case for this library is not really to run multiple streams at the same time, even though I made an example to showcase that.

I just ran my example again, with 4 simultaneous streams. No issues with loading them. H.264 @ 800x600.

@AnderssonChristian
Copy link
Contributor Author

@lekoaf Understandable. I still think an automatic quality adjustment would be interesting to look at. If it's possible, I might look at a solution.

@lekoaf
Copy link
Member

lekoaf commented May 3, 2021

Be my guest. Perhaps a piece of code like that should be optional. So that everyone using just one stream doesn't get affected by it.

@lekoaf lekoaf added enhancement New feature or request and removed bug Something isn't working labels May 3, 2021
@lekoaf lekoaf transferred this issue from AxisCommunications/media-stream-player-js Jan 25, 2023
@lekoaf lekoaf added the player Related to player (media-stream-player-js package) label Jan 25, 2023
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request player Related to player (media-stream-player-js package) stale
Projects
None yet
Development

No branches or pull requests

3 participants