WofWca / jumpcutter

⏩ Fast-forwards long pauses between sentences — watch lectures ~1.5x faster (browser extension)
https://chrome.google.com/webstore/detail/jump-cutter/lmppdpldfpfdlipofacekcfleacbbncp
GNU Affero General Public License v3.0
356 stars 13 forks source link

Some videos are muted until you pause-unpause them #152

Open WofWca opened 1 year ago

WofWca commented 1 year ago

Reproduction

  1. Open a Chromium browser
  2. Go to a website with an embedded YouTube video (e.g. https://jumpcutter.com/)
  3. Start an embedded video

Actual result: there's no sound. If you pause and unpause the video, the sound starts.

https://user-images.githubusercontent.com/39462442/235887890-d09105be-40a4-47a5-ab46-c95a47e9b97c.mp4

This warning is printed in the console, I believe it's related:

Thee AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu.

There's this code that's supposed to handle this, but looks like it doesnt? https://github.com/WofWca/jumpcutter/blob/6d181c420086db5f888ef72b4c230d7e4213f5b9/src/entry-points/content/ElementPlaybackControllerStretching/ElementPlaybackControllerStretching.ts#L278-L286

Related: #80

WofWca commented 1 year ago

I've just seen it also happen on YouTube