youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Playback speed not working anymore

Open killthe3vil opened this issue 8 months ago • 39 comments

it been few days the playback speed not working anymore.

killthe3vil avatar Nov 28 '23 09:11 killthe3vil

I'm interested in tackling this task, but I would appreciate it if additional information could be provided. :)

shadow-ryu avatar Nov 28 '23 10:11 shadow-ryu

hi @killthe3vil what version?

@shadow-ryu Awesome!!

cant say much. some of our stuff needs maintenance when youtube's DOM / CSS changes, but html5 browser standard playback features shouldnt break and youtube player's functions are well known / might not change.

in the repo a complex enhancement deciding what's music (no speed up) was just added a few days ago. This will only reach stores today or tomorrow.

ImprovedTube avatar Nov 28 '23 10:11 ImprovedTube

im not sure what info you want, i will just show everything i can Window 10 Chrome Version 119.0.6045.160 (Official Build) (64-bit) ImproveTube Version 4.408

killthe3vil avatar Nov 28 '23 10:11 killthe3vil

ok

shadow-ryu avatar Nov 28 '23 10:11 shadow-ryu

@shadow-ryu Appreciated for the help!~

killthe3vil avatar Nov 28 '23 10:11 killthe3vil

@killthe3vil can u share the local setup guide as I cant find the same.

shadow-ryu avatar Nov 28 '23 15:11 shadow-ryu

@shadow-ryu local setup guide? i'm not sure what it is. but somehow it fixed today, are you doing something already?

killthe3vil avatar Nov 29 '23 01:11 killthe3vil

hi! @killthe3vil, i should have asked if you did anything differently when it didn't work and for how long.

(the update(v4.443) was only approved for our chrome webstore beta testing version yet)


setup guide

the repo is also the extension. no building required. (more: https://github.com/code-charity/youtube/wiki/Contributing#Development ) hi @shadow-ryu how are you?

ImprovedTube avatar Nov 29 '23 09:11 ImprovedTube

Hi @ImprovedTube nop, i did nothing on setting after i done all the customize, it didn't work like 1 weeks ago until today.

killthe3vil avatar Nov 29 '23 10:11 killthe3vil

Hey @killthe3vil its working on my side too

shadow-ryu avatar Nov 29 '23 15:11 shadow-ryu

@shadow-ryu ya it weird that it fixed itself by today

killthe3vil avatar Nov 29 '23 15:11 killthe3vil

we can keep this issue on monitoring?

shadow-ryu avatar Nov 29 '23 15:11 shadow-ryu

it is me only or the function not working again?

killthe3vil avatar Dec 01 '23 06:12 killthe3vil

hi @killthe3vil thanks, we can just assuming it works for most people most of the time and we just had a bug with applying it to embedded youtube players before. ( assumably you werent confused by the music exclusion either. )

cant say much. some of our stuff needs maintenance when youtube's DOM / CSS changes, but html5 browser standard playback features shouldnt break and youtube player's functions are well known / might not change.

(didnt mean to say there is no bug, just that we should fix it already if any.)

@shadow-ryu

yes, looking forward to whatever we might discuss next.

ImprovedTube avatar Dec 01 '23 10:12 ImprovedTube

I just want to add that with these settings on v4.443: image music recognizing doesn't work very well, or maybe I don't understand some functions. When I open a video with some talking, I get 1.25 (as I want), but then when I go to music video, it stays at 1.25 (I want 1.0). Shouldn't there be an option/function "Don't force playback speed for music"?

xeophyte avatar Dec 02 '23 19:12 xeophyte

tried reinstall?

Anoaxx avatar Dec 02 '23 19:12 Anoaxx

Yes, I reinstalled and restored settings and still got 1.25 on music.

xeophyte avatar Dec 03 '23 14:12 xeophyte

@xeophyte how many examples did you try? please share all or look for the reason they were missed

  • the feature writes to the browser console (F12):
    • "genre: Music//title:....//keywords:....//music word match:true//not music word match:false//duration: 200//song duration type:veryCommon
    • "Youtube shows music below the description"
  • possible issues: Spam Keywords, Over length music; Typo in recent code edits
    • please check https://github.com/code-charity/youtube/releases/tag/4.443 & https://github.com/code-charity/youtube/issues/1760
  • (if you tried to enable speed for music, it requires a reload to undo i think.)

ImprovedTube avatar Dec 03 '23 15:12 ImprovedTube

On at least 15 videos. Actually the 1.25 speed often doesn't work even on talking movies, like https://www.youtube.com/watch?v=lRvXAU9_sfc or https://www.youtube.com/watch?v=DKBxkrUPCbs even after many refreshes. Sometimes it works, but then music doesn't, like I play music video, get 1.0, then go directly to talking, get 1.25, then go back to music and 1.25 stays. But maybe it's connected to my other bugs - Autoplay never works - I have to play manually every new video (besides playlists) and Show description - set to Always sometimes doesn't work.

xeophyte avatar Dec 03 '23 20:12 xeophyte

@xeophyte so it worked better for you before? (v4.408, v4.404, ... ?)

back

with browser nagivation back arrow?

maybe this code doesnt always run for you when a video starts? do all these other features, such as the permanent volume, also work - or fail at the same times? https://github.com/code-charity/youtube/blob/7e2519ad13dd1bed6e5c697b0fd00d81b705479a/js%26css/web-accessible/functions.js#L344-L365

ImprovedTube avatar Dec 03 '23 23:12 ImprovedTube

@xeophyte forgot some of the code about music is disabled, so that's an explanation. https://github.com/code-charity/youtube/blob/7e2519ad13dd1bed6e5c697b0fd00d81b705479a/js%26css/web-accessible/www.youtube.com/player.js#L150 to confirm this please check if everytime it fails, the browser console sais 5 times: Error: Invidious API: ... and eventually (~10s later) Error parsing id="scriptTag"\'s JSON: .....

ImprovedTube avatar Dec 04 '23 06:12 ImprovedTube

so it worked better for you before? (v4.408, v4.404, ... ?)

I test this feature only for few days, don't know how it was earlier.

with browser nagivation back arrow?

Yes, and also when I click music video directly from the right related list.

Similar test: I play talking video (sets itself on 1.25), go to music from related (stays at 1.25), set it to 1.75, go to another talking (sets itself on 1.25), go to some music (stays at 1.25), set it to 2.0, go to some music (stays at 2.0).

It doesn't matter if the next video is opened by click or using the previous/next page button, the effect is the same. In other words: the speed setting for a music video is set to the one that was last set, regardless of whether the last page was a video with talking or music. On the current browser tab of course.

Maybe it's somehow related to YT itself remembering the speed setting of a given video?

maybe this code doesnt always run for you when a video starts? do all these other features, such as the permanent volume, also work - or fail at the same times?

I don't know how to test it.

image

~~But I still feel it's connected to my Autoplay sometimes not working. When I open some YT tab in the background and go to that tab, the video doesn't play, have to run manually.~~

xeophyte avatar Dec 04 '23 20:12 xeophyte

thank you! @xeophyte you can watch the browser console live to see what happens when. (busy seconds. Can also enable top view timestamps..)

  • Every time we show the paragraphs "Genre:...", then we also try to set the speed accordingly, which should just work if the timing isnt wrong.
    • (Previously an issue was, that the keywords would stay the same as the previous video or missing. But that's solved just before you started)

ImprovedTube avatar Dec 07 '23 18:12 ImprovedTube

I found some videos get the automatic speed and some do not. I am guessing this has to do with the category but I can't find where to see what categories a video belongs to

mrlinuxfish avatar Dec 30 '23 18:12 mrlinuxfish

@mrlinuxfish yup that how the situation to me as well, could not figure out what the issue

killthe3vil avatar Dec 30 '23 19:12 killthe3vil

thanks! @mrlinuxfish @killthe3vil

maybe it happens only when excluding music and only after clicking a related video only? (then to see the tags efficiently we ask a random invidious API node but some may be down and it is retried for a few seconds. should be robust 🤔)

category

hoped we'd have an easy bug, that always excludes education videos as the switch is new, but maybe not

you can see the category called genre in the browser console log as in the screenshot above our comments using the word genre as it is the same one youtube used (even though it is about 1/3 as common and more seasonal (summer lows) https://trends.google.com/trends/explore?date=all&q=genre,category&hl=en

ImprovedTube avatar Dec 31 '23 02:12 ImprovedTube

let us know your further experience? @mrlinuxfish @killthe3vil @shadow-ryu @xeophyte

ImprovedTube avatar Feb 22 '24 03:02 ImprovedTube

let us know your further experience? @mrlinuxfish @killthe3vil @shadow-ryu @xeophyte

i think so far so good now, but sometime will not working like 10 out of 1 time.

killthe3vil avatar Feb 22 '24 03:02 killthe3vil

Looks like it's working for me on 4.700 (maybe one out of 10 times it doesn't work), although sometimes switching to the appropriate speed takes up to 10 seconds. Also, I found new bug related. I set the default speed to 1.25, so non-music is at that speed and music is at 1.0. When I play a playlist (e.g. with music) and go to for example subscription page or the home page, the playback speed in the miniplayer is changed to the default one, i.e. in my case the music speeds up to 1.25.

xeophyte avatar Feb 22 '24 17:02 xeophyte

Looks like it's working for me on 4.700 (maybe one out of 10 times it doesn't work), although sometimes switching to the appropriate speed takes up to 10 seconds. Also, I found new bug related. I set the default speed to 1.25, so non-music is at that speed and music is at 1.0. When I play a playlist (e.g. with music) and go to for example subscription page or the home page, the playback speed in the miniplayer is changed to the default one, i.e. in my case the music speeds up to 1.25.

Try open video in a new tab and wait that 10 second before tuning into it. It should work from a strat. Some things need some time to load.

Anoaxx avatar Feb 24 '24 20:02 Anoaxx