[Bug]Pressing space will stop the youtube video, but press again won't restart it

I don’t know if this will get supported or not.
When opening a youtube video directly with youtube-nocookie.com embeded, the ‘space’ key work correctly.

But after replacing it to ‘youtube.com’, the key ‘space’ can stop the youtube correctly but pressing it again won’t replay the video.

// Replace "youtube-nocookie.com" with "youtube.com"
if (src && src.includes('youtube-nocookie.com')) {
    src = src.replace('youtube-nocookie.com', 'youtube.com');
    iframe.setAttribute('src', src);

I don’t know much about web development. Can you share how the LinQ is listening to the key so I might about to add it to my script and fix it from my side?

1 Like

Up for a bug fix for this too. I believe it just tries to press the Play/Pause button. But the Play/Pause button doesn’t work with the YouTube widget… You probably need to reinject the YouTube frame or write a custom script that interacts with an already embedded player.

1 Like

Thanks, I’ll forward this to our team.

1 Like