FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Videos don't load, player continuously flickers

Open mooreye opened this issue 2 years ago • 69 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have encountered this bug in the official downloads of FreeTube.
  • [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • [X] This issue contains only one bug.

Describe the bug

I get

NotSupportedError: The element has no supported sources.

on every video. It keeps flickering between a full-sized and thumbnail-sized player, and never loads (it flickers like was shown here: https://github.com/FreeTubeApp/FreeTube/issues/5452).

Local API is selected as backend, fallback to non-prefered is enabled. Invidious proxy is disabled.

Expected Behavior

vid loads

Issue Labels

API issue, content not loading, feature stopped working

FreeTube Version

v0.21.1 Beta

Operating System Version

Fedora 40

Installation Method

Flathub

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

0.21.1 Beta

Additional Information

on same version, it used to work fine. Today issues started.

Nightly Build

mooreye avatar Jul 24 '24 16:07 mooreye

I have started to get this problem a few minutes ago for every video as well.

Proxying through invidious stops the flickering but also fails with the message: NotSupportedError: Failed to load because no supported source was found.

However, the video does play when opened on the same invidious instance via web browser, so it seems like the problem may be in Freetube

EDIT: This comment has a better workaround.

mkalinski avatar Jul 24 '24 17:07 mkalinski

Same issue, just verifying this is happening to me as well

stripe1000 avatar Jul 24 '24 17:07 stripe1000

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. qn {code: 4, message: 'The media could not be loaded, either because the …rk failed or because the format is not supported.'}

renderer.js:2 Unable to play dash formats.  Reverting to legacy formats...

renderer.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'ready')
    at renderer.js:2:1797362

ArthurKun21 avatar Jul 24 '24 17:07 ArthurKun21

Same happening to Zorin 17.1 (.deb) version

VHF2688 avatar Jul 24 '24 17:07 VHF2688

To make it easier for the devs, let's just upvote the main post

ArthurKun21 avatar Jul 24 '24 17:07 ArthurKun21

Same issue, just verifying this is happening to me as well

garfhub avatar Jul 24 '24 17:07 garfhub

Same issue. The player reloads the videos over and over again. A few days ago videos would load in very low resolution until I reloaded them with ctrl-r, but now it's totally broken.

Switching from Local API to Invidious fixed the issue for now. But Invidious instances are unreliable so it won't last.

Gorrrg avatar Jul 24 '24 17:07 Gorrrg

Same issue for me. I switched back to invidious instance with no luck. I got this error message:

SyntaxError: Unexpected end of JSON input

Edit: Livestreams are working

Feuerstahl avatar Jul 24 '24 17:07 Feuerstahl

Exact same problem as given by Keru4 above.

Switching to Invidious does not fix the problem for me: My subscriptions page will not load at all, and most videos will either not load caused by error code "Error: Could not get channel info." or "TypeError: Failed to fetch". Other videos will not load for a long time and then fall back to Local API flickering.

philobyte avatar Jul 24 '24 18:07 philobyte

Switching to Invidious seems to have resolved the issue (temporarily and tempermentally) but I can confirm that with Local API the player flickers trying to load, and opening the dev console with F12 shows that it's repeatedly 403ing, making me think it might be Youtube fucking with things yet again.

I haven't exactly delved into the code or read through the log (because it keeps spamming itself to all hell) nor do I really know shit, but maybe this much helps somewhat?

VideoGames1000 avatar Jul 24 '24 18:07 VideoGames1000

Same issue. Switching from Local API to Invidious API does seem to fix it. Would like to switch back to Local API once it is fixed, as I have too many subscriptions for the Invidious API to work properly.

profucius avatar Jul 24 '24 18:07 profucius

Same issue. As others have said switching to individuous API seems to fix the problem.

BillowingHillock avatar Jul 24 '24 18:07 BillowingHillock

Same for me but switching to invidious instance (at least invidious.fdn.fr) did not fix.

Live videos like Sky News work fine

LowryConor avatar Jul 24 '24 18:07 LowryConor

Having this issue as well. Switching to Invidious makes the page load indefinitely for me, until it switches back to local api and starts doing this again.

Psychocrysma avatar Jul 24 '24 18:07 Psychocrysma

#5459 #5458 #5457

make sure you searched the issue tracker for open and closed issues.

4yman-0 avatar Jul 24 '24 18:07 4yman-0

It seems like youtube is doing something weird currently and that is impacting FreeTube, Newpipe and Invidious. Invidious instances only provide "medium" resolution and like FreeTube, Newpipe is broken as well

david-0609 avatar Jul 24 '24 18:07 david-0609

I had this issue inconsistently with some videos yesterday, which was fixed by refreshing by going to the homepage and back. Today it happens to all videos and refreshing doesn't fix it.

SeoReadeHenn avatar Jul 24 '24 18:07 SeoReadeHenn

Also found my way here, live streams works everything else flickers like crazy, windows 11 64bits

durakraft avatar Jul 24 '24 18:07 durakraft

Possibly youtube cracking down on 3rd party apps that circumvent their ad revenue? They were talking about this a few months ago and I was wondering if we'd see impacts to Freetube.

Infinality avatar Jul 24 '24 18:07 Infinality

SmartTube for android has also been struggling lately, that dev has been releasing updates near daily to keep the app working. Google is shifting the tectonic plates around to address losses in ad-revenue.

profucius avatar Jul 24 '24 18:07 profucius