Coder Social home page Coder Social logo

Comments (6)

serj-kzv avatar serj-kzv commented on September 27, 2024
  1. It is also possible that a new video or audio tag will be added to a page after you sent a stop command. So your stop command will not work for the new tag. It is also possible that the new tag will be added in a gap between you switch on to another tab and video or audio tag is found (search tag algorithm).

from autopause.

NDevTK avatar NDevTK commented on September 27, 2024

@serj-kzv its now checking for HTMLMediaElement 013b177 does this fix the issue with
custom elements? if not please provide an example video.

This commit also has document.onplay = main so if a new video starts playing it will get paused.
And in 7f5d181 ShadowRoot has been excluded.

from autopause.

NDevTK avatar NDevTK commented on September 27, 2024

Have not found a HTMLVideoElement using a different tag then "video"

from autopause.

NDevTK avatar NDevTK commented on September 27, 2024

Sorry @serj-kzv for closing this.
I think the DOM injection should use a closed shadow dom.
This should be supported. https://bugs.chromium.org/p/chromium/issues/detail?id=778816

from autopause.

NDevTK avatar NDevTK commented on September 27, 2024

Should be fixed now!

from autopause.

NDevTK avatar NDevTK commented on September 27, 2024

Thanks for the report @serj-kzv
This is finally fixed as of https://github.com/NDevTK/AutoPause/actions/runs/1726036383 I tested it using a closed shadow dom https://ndevtk.github.io/AutoPause/shadow.html

from autopause.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.