Giter Site home page Giter Site logo

ndevtk / autopause Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 6.0 995 KB

Browser extension to pause other audio and video sources if audio is playing on the active tab with automatic resume, fast forward and media controls.

Home Page: https://addons.mozilla.org/firefox/addon/autopause/

License: MIT License

JavaScript 93.70% CSS 0.49% HTML 5.80%
video-sources autopause audio firefox-extension firefox-extensions extensions javascript chrome-extension

autopause's Introduction

autopause's People

Contributors

ajayyy avatar deepsourcebot avatar ndevtk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

autopause's Issues

Media from Pandora is no longer paused when switching tabs

After updating to Firefox 93.0, the extension no longer automatically pauses Pandora Radio when viewing media in other tabs.

I have unsuccessfully attempted to remedy this issue by:

  • restarting Firefox
  • logging out of Pandora and clearing its cache
  • creating a new Firefox profile
  • updating to Firefox Nightly (95.x)

Suggestion. "Pause all" hotkey or/and queue limit

When I open multiple tabs with media playing, a queue of paused media is formed. Sometimes this is very convenient, but if there are too many paused media, it can be difficult to pause them all.

I suggest adding a hotkey to pause all media (i.e. to clear the queue and stop the playing media)

I would also suggest adding a limit to the queue size. The oldest media that exceed the limit will be stopped permanently without automatic continuation.

Sorry for the machine translation

How will it work in case of inherited HTML tags (custom elements) and Shadow DOM (including closed DOM)?

How will it work in case of inherited HTML tags (custom elements) and Shadow DOM (including closed DOM)?

  1. I can create custom elements that inherits HTMLVideoElement
    class PopupInfo extends HTMLVideoElement {
    }
    customElements.define('popup-info', PopUpInfo);
    How will your algorithm find <popup-info> tag?
  2. It also should not work with Shadow DOM including closed Shadow DOM see my issue for SingleFile addon gildas-lormeau/SingleFile#518

Also see https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements

Clarify multi-window usage

Hey! Thanks for the neat extension.

I think I may either not fully understand how to use it, though. Or maybe what I'm trying to achieve isn't possible?

Here's what I'm trying to achieve:

  • 2 Firefox windows are open: Window A and Window B.
  • Window A has two media tabs loaded: Tab A1 and Tab A2. I want AutoPause to make sure that only one of these is currently playing.
    • (Both of them are Picarto streams in my particular use case, if it matters.)
  • While Window A is showing, I want to be able to switch to Window B without the media currently playing in Window A to pause.
    • In other words, I want to see both windows side-by-side, and have interaction with Window B not interfere with the playing of media in Window A.

Is this possible? When I have the "Pause media on tab change (...)" setting enabled and I switch from Window A to Window B, the media in Window A will pause playback, which I don't want. With the setting disabled, playback in Tab A1 will not pause when I switch to Tab A2 in Window A (as far as I can tell).

doesn't work on many sites ..

listening to wrif.com , switch tabs to youtube and they both play .. watching USTVGO , change tabs to another USTVGO and both play .. i love the idea of this addon and hope you can get it working across the board! thanks and have a great day!

Can't customize keyboard shortcuts

Describe the bug
I can no longer customize the keyboard shortcuts in the AutoPause's add-on options.
Selecting one of the text fields in the "Shortcuts" section will allow me to type in the text field, but this won't actually set a keyboard shortcut.

To Reproduce

  1. Go to 'about:addons' > 'Manage Your Extensions' > 'AutoPause' > '...' > 'Options'.
  2. Select one of the text fields in the "Shortcuts" section and try to customize a keyboard shortcut.
  3. The shortcut won't be changed.

Expected behavior
The keyboard shortcut is set.

Video
https://user-images.githubusercontent.com/1099659/184532142-7f210ffc-5d20-424f-8647-215966a0c22d.mp4

Desktop:

  • OS: Windows 11, build 22000.795
  • Browser: Firefox 103.0.2 (64-bit)

Extension configuration

  • Version: 2.7.6, but happens with older versions as well.
  • Options changed: none

Browser configuration

  • Fresh Firefox install on a sandboxed OS with no other extensions installed.

Go to Active Tab Hotkey

This plugin is Genius!

A hotkey or button to go to active playing tab would be great! Sometimes its hard to find or see the music icon amongst all the tabs.

Cheers!!!

Netflix Video Not Working: Blackscreen

Describe the bug
When installed and enabled, it causes Netflix to not play video.
Audio still plays, just no video output.

To Reproduce
Steps to reproduce the behavior:

  1. Install Add-on
  2. Play Video on Netflix
  3. See error

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Firefox 105.0.2 (64-bit)

Extension configuration

  • Version of extension: 2.7.6
  • Options changed: None

Browser configuration

  • Flag changes: None
  • Other extensions: None
  • Browser configuration: None

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.