PopupVideo icon indicating copy to clipboard operation
PopupVideo copied to clipboard

[Feature request] Maintain video position and play automatically

Open Luxian opened this issue 5 years ago • 2 comments

When you open a video that's already playing on YouTube the PopUp video should start playing automatically from that position and pause the original video.

Related issue:

  • https://github.com/ettoolong/PopupVideo/issues/10

Luxian avatar May 28 '19 13:05 Luxian

I know a bit of JavaScript but I don't have any experience with browser extensions. I'm willing to help if I get some guidance (where to start) or willing to sponsor the work for this.

Luxian avatar May 28 '19 13:05 Luxian

Hi @Luxian ,

You can use document.querySelector('video'), to find the video element Call play or pause to play/pause video. Set autoplay parameter in popup's URL NOTE: Firefox maybe block this behavior, see this

Parse the YouTube time parameter ( ?t= ) from URL and carry it to popup's URL

ettoolong avatar Jul 25 '19 10:07 ettoolong