FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Legacy Format Local API error (click to copy) : typeerror: Cannot read property '0' of undefined

Open matt-rgx opened this issue 6 years ago • 6 comments

Behavior of the program Can't watch any video at all. If i click on any video of my subsription page, i have this error : "Local API error (click to copy) : typeerror: Cannot read property '0' of undefined"

Expected behavior Video playing normally

To Reproduce Please add all steps to reproduce the behavior:

  1. install last nightly (v0.9.2-nightly-322 Beta)
  2. Click on any video of the subscriptions page
  3. See error

Screenshots

image

Environment Information (please complete the following information):

  • OS: W10
  • OS Version: W10 19041.508
  • FreeTube version: v0.9.2-nightly-322 Beta
  • Installation Method (If applicable): .exe
  • Primary API Used: Local API

Additional context

matt-rgx avatar Nov 30 '20 10:11 matt-rgx

Hi, so this is weird. I just tried the live stream you provided and it works fine for me.

Could try to search the video and then play it instead of clicking from the subscription window? Just want to confirm whether you can watch the video from search or not :)

Thanks in advance

GilgusMaximus avatar Nov 30 '20 14:11 GilgusMaximus

thanks for your answer. exactly the same behaviour from the search results with the same error message. here are my settings :

Settings 1 Settings 2

matt-rgx avatar Nov 30 '20 14:11 matt-rgx

Hi, so first of all thanks for trying what I suggested. Unfortunate that it didn't work.

So from your setting I can see two things that are in a bit of a conflict, due to the app not really restricting it. If you use the Legacy format, you cannot use 1080p. The legacy format is capped at 720p and usually only provides 360p and 720p (so none of the others).

However this might not be the problem in itself, because the default quality doesn't actually work most of the time. The problem at the moment is that the Legacy format seems to fail. This happens on my machine as well. So I'd suggest switching to DASH format for the moment. I'll also edit the title so other people can find it more easily and we are able to identify the problem more easily

Edit: I don't know what happened, but now my complete application crashes at every video. This will definitely become high priority

GilgusMaximus avatar Dec 01 '20 08:12 GilgusMaximus

Hello, Thanks for your answer. So i moved to DASH format but i still have the error. the only thing that change is that now i have the player in the good size and not in very small in the corner.

Picture

When i click on the play button, nothing happened and it just stays like that (the error message disappear after few seconds)

matt-rgx avatar Dec 01 '20 08:12 matt-rgx

Thanks for testing. Currently the issue is due to our main module which grabs all the information not getting some information. This leads to the failures. I'll test something today or tomorrow and will come back to you :)

GilgusMaximus avatar Dec 02 '20 16:12 GilgusMaximus

This is now fixed in the newest nightly build, which should be available in a few minutes

GilgusMaximus avatar Dec 02 '20 18:12 GilgusMaximus