mediaelement icon indicating copy to clipboard operation
mediaelement copied to clipboard

Random Playlist Selection After Playback Problem

Open ghost opened this issue 8 years ago • 3 comments

If choosing an item to play from a HLS based playlist and there is a problem with the selected stream, Media Player JS will then play a different and completely random alternate stream in the list.

Ideally the player should either display an error message or at least the next entry in the playlist, not a random entry.

Confirmed in latest versions of Firefox and Chrome on Windows and Ubuntu.

This problem has existed across the last couple of versions (if not further) and exists in: mediaelement-mediaelement-4.2.9-0-g6d66563.zip mediaelement-mediaelement-plugins-2.5.0-2-g82f0580.zip

ghost avatar May 01 '18 12:05 ghost

Hi, can provide an example please

Qoraiche avatar May 10 '18 15:05 Qoraiche

Hi Thanks for your response.

Please go to the following: http://live.livingstreams.tv/test.html The first 3 hls streams in the playlist have problems.

Selecting 'NON EXISTENT DOMAIN' in the playlist results in the player loosing all functionality and its menu and controls, and displaying the following an error: Media error: Format(s) not supported or source(s) not found Download File: http://sfkfuehgovudnskco.com/missing.file As the label suggests the domain doesn't exist. The only way to come back from this is to reload the webpage, which is not desirable.

Selecting 'NON EXISTENT FILE' in the playlist results in the player loosing all functionality and its menu and controls, and displaying the following an error: Media error: Format(s) not supported or source(s) not found Download File: http://live.livingstreams.tv/missing.file As the label suggests the domain doesn't exist. The only way to come back from this is to reload the webpage, which is not desirable.

Selecting 'CORS BLOCK' in the playlist results in the player selecting a different random live stream. Choosing 'CORS BLOCK' again results in a totally different live stream being played. Both the domain and the file exist but in this particular example CORS settings prevent the live stream from being played. There are other instances where random live streams are played which don't have anything to do with CORS settings. We are still trying to narrow what those exact circumstances are but it appears it's when the m3u8 is temporarily empty due to live streaming issues on the broadcasters side.

LS-TV avatar May 14 '18 05:05 LS-TV

Sometimes the player just displays 'network error' and publishes the entire playlist links in text with a black screen and at times the player crashes altogether and all controls and menu options disappear. The only way to remedy this is to completely reload the page. See the following screenshots from two recent occasions: http://live.livingstreams.tv/2018-05-29-Error.png http://live.livingstreams.tv/2018-05-31-Error.png

Steps to reproduce:

  • Open: http://live.livingstreams.tv/test.html
  • Open the playlist menu near the bottom right of the player
  • Disconnect from the internet
  • Choose an item on the playlist.

The player will then time out and then publish the playlist links on the screen and sometimes the player will crash itself and fail to show any controls or menu options.

Although the above reproduction steps require disconnecting from the internet, this problem still occurs intermittently even when connected to the internet and seems to be triggered by a hls link being temporarily unavailable or possibly timing out.

The ideal outcome would be to have a more user friendly message displayed and for the player to never crash and remove the controls/menu options from the user. Users having to refresh/reload the page to continue on after the problem occurs is not an ignorable/tolerable bug.

LS-TV avatar May 31 '18 07:05 LS-TV