iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.15k stars 1.78k forks source link

[FYI] Firefox nightly shows 'No available working or supported playlists'- works in Firefox 102 #3966

Open Yetangitu opened 1 year ago

Yetangitu commented 1 year ago

In the continuing saga of Playback cannot continue. No available working or supported playlists related errors I can add that this message has started to crop up in recent Firefox nightly versions on some videos. The same videos work without problems in Firefox 102 (ESR) as well as in Chromium. When coming upon a video which doesn't work in FF nightly - e.g. https://www.youtube.com/watch?v=XoJ0bAp4Eo8 (Johnny Cash - The Mercy Seat) - the following appears in the console:

VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No available working or supported playlists. 
Object { code: 3, message: "Playback cannot continue. No available working or supported playlists." }
[video.js:163:49](https://invidious.example.org/videojs/video.js/video.js?v=45cc8356)
Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted. [video.js:24023:27](https://invidious.example.org/videojs/video.js/video.js?v=45cc8356)
Uncaught (in promise) DOMException: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No available working or supported playlists. 
Object { code: 3, message: "Playback cannot continue. No available working or supported playlists." }

...and the following in the Network tab:

GET   invidious.example.org   https://invidious.example.org/videoplayback?expire=1688518885&ei=hWykZKiwG8C3mLAPvoSrgA0&ip=...   video.js:8080 (xhr)   mp4   NS_BINDING_ABORTED   498.78 kB
GET   invidious.example.org   https://invidious.example.org/videoplayback?expire=1688518885&ei=hWykZKiwG8C3mLAPvoSrgA0&ip=...   video.js:8080 (xhr)   mp4   NS_BINDING_ABORTED   1.57 MB
...
GET   invidious.example.org   https://invidious.example.org/videoplayback?expire=1688518885&ei=hWykZKiwG8C3mLAPvoSrgA0&ip=...   video.js:8080 (xhr)   mp4   NS_BINDING_ABORTED   105.56 kB
GET   invidious.example.org   https://invidious.example.org/videoplayback?expire=1688518885&ei=hWykZKiwG8C3mLAPvoSrgA0&ip=...   video.js:8080 (xhr)   mp4   NS_BINDING_ABORTED   1.03 MB

As said this works in Firefox 102, there are no similar NS_BINDING_ABORTED messages in the Network tab and the console shows VIDEOJS: loadmetadata event [video.js:163:49] where the Nightly console produces those error messages. Both browsers are used with an identical profile, tested with a freshly compiled version of Invidious, built with Crystal 1.8.2 but the same error cropped up when I built it with earlier Crystal versions.

unixfox commented 1 year ago

can you reproduce the issue on public instance(s)?

are you using DASH or not DASH (default settings with hd720)?

what's the firefox version number?

Yetangitu commented 1 year ago

Using DASH, tested with medium as well, no difference.

Testresults with Firefox 102

Not working

yewtu.be, invidious.lunar.icu, vid.puffyan.us, yt.artemislena.eu, inv.zzls.xyz, ...: The media could not be loaded, either because the server or network failed or because the format is not supported. - not logged in, I only have an account on my own server, could be related? Proxy video enabled.

onion.tube, inv.tux.pizza, vid.priv.au, ...: The media could not be loaded, either because the server or network failed or because the format is not supported. - not logged in, proxy video disabled, can not be enabled (greyed out)

Working

invidious.projectsegfau.lt, inv.bp.projectsegfau.lt: works, tested at DASH 480p (maximum offered)

With Firefox Nightly (117) this video does not work with any instance

unixfox commented 1 year ago

What's the video codecs results on this website: https://html5test.com/?

Yetangitu commented 1 year ago

Firefox 107 running on Debian "Sid":

MP4 with H.264 support | Yes ✔ MP4 with H.265 support | No ✘ TS with H.264 support | No ✘ TS with H.265 support | No ✘ WebM with VP8 support | Yes ✔ WebM with VP9 support | Yes ✔

Firefox Nightly (117) running on same Debian "Sid":

MP4 with H.264 support | Yes ✔ MP4 with H.265 support | No ✘ TS with H.264 support | No ✘ TS with H.265 support | No ✘ WebM with VP8 support | No ✘ WebM with VP9 support | No ✘

Seems WebM video is absent in the latter (WebM audio (Vorbis/Opus) is present). When attempting to open any WebM VP8/VP9 video some warnings are reported by FF relating to /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp:372 and /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachineBase.cpp:166 so this is most likely a Firefox bug (hence the FYI).

I submitted a bug for this to the Firefox bug tracker (https://bugzilla.mozilla.org/show_bug.cgi?id=1841709)

unixfox commented 1 year ago

Related: https://github.com/iv-org/invidious/issues/3993

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.