Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel 4 Player support also a code question #12

Open
ciaranbrohan opened this issue Dec 23, 2023 · 1 comment
Open

Channel 4 Player support also a code question #12

ciaranbrohan opened this issue Dec 23, 2023 · 1 comment

Comments

@ciaranbrohan
Copy link

ciaranbrohan commented Dec 23, 2023

Hey I'm based in the uk, not sure if you use the channel 4 player/rte player, i've built a similar style of plugin as yours (using your code as inspiration) just like to poke around myself to understand the code.

I can do a pr to add support for both if you'd be interested,

Secondly, I was wondering if there's a better way to handle this code:

const video = document.querySelector('video');
const adElement = document.querySelector('.video-ads.ytp-ad-module');

the check for the ad element and video seems doubled up? although there could be a good reason for it

@rkk3
Copy link
Owner

rkk3 commented Jan 13, 2024

Sorry for the delay you're welcome to do a PR to support that site.

There might be a better way of handling that, but at a high level we need the video element because thats what we manipulate & the ad element tells us if there are ads running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants