http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

Qualities not loading and addqualitylevel event not triggered

Open jascaldeira opened this issue 7 years ago • 6 comments

Description

Hello, If i open the player, in a new tab WITHOUT FOCUSING IT (middle mouse button open for example), and let some time pass (so all javascript may run), the quality levels are not loaded and addqualitylevel event is not even triggered... if you do the same but focusing the window, all runs good.

Sources

Steps to reproduce

  1. Open a video page with m3u8 source on a new tab
  2. Wait a couple of seconds
  3. Go see it (no qualities loaded)

Results

Expected

Qualities Loaded

Error output

Additional Information

videojs-http-streaming version

videojs-http-streaming 1.9.3

videojs version

video.js 7.6.5 (im sure that this happens since 7.1.0 or older)

Browsers

Only tested with Chrome

Platforms

Only tested with windows 10

Other Plugins

*

Other JavaScript

are you using any other javascript libraries or frameworks on the page? if so please list them below. *

jascaldeira avatar Oct 24 '19 11:10 jascaldeira

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Oct 24 '19 11:10 welcome[bot]

Does it load the qualities when you then switch to the tab? I know that Chrome basically disallows videos from loading in the background so if it ends up loading properly when you focus the tab it is then working as expected as it is a browser limitation.

gkatsev avatar Nov 21 '19 21:11 gkatsev

Hello @gkatsev , Sadly, no it doesn't... In this use case, the qualities never load up.

jascaldeira avatar Nov 22 '19 08:11 jascaldeira

Interesting. Does the video end up playing? Or is just completely broken? I guess we'll have to investigate.

gkatsev avatar Nov 22 '19 22:11 gkatsev

hello @gkatsev , sorry for the delay in the answer. Yes. the video end up playing. I just cant change his quality.

jascaldeira avatar Nov 27 '19 15:11 jascaldeira

Fixed as part of #707, release soon.

gkatsev avatar Jan 10 '20 18:01 gkatsev