Coder Social home page Coder Social logo

Comments (4)

avayvod avatar avayvod commented on June 5, 2024

Given there might be user agent specific UI (default controls or toolbar) depending on the monitoring, I don't think we can require the UA to stop all monitoring when the set of availability callbacks is empty.
It's similar for the disableRemotePlayback attribute. There might be other media elements loaded on some page or other browser feature depending on the monitoring (like tab casting).
The information is not exposed to the page via the specific element if its availability callbacks set is empty and/or if it has disableRemotePlayback set.

from remote-playback.

mfoltzgoogle avatar mfoltzgoogle commented on June 5, 2024

If disableRemotePlayback is set on a media element, won't that also disable remote playback UI on the default controls/toolbar?

I agree that an empty set of availability callbacks shouldn't disable monitoring though.

We may want to clarify that there if there is a browser level control to disable background monitoring, how the API should behave.

from remote-playback.

avayvod avatar avayvod commented on June 5, 2024

Definitely not on the user agent's toolbar as it's unlikely refers to one single element.

disableRemotePlayback is to prevent remote playback of a certain media element, not availability monitoring although it does disable the media element specific availability related methods for consistency.

I'm not sure clarifying how browser features / settings affect the API is necessary as long as it affects it in a non-website breaking way like reporting no devices available and being consistent with it.

from remote-playback.

mfoltzgoogle avatar mfoltzgoogle commented on June 5, 2024

On re-reading, this issue will be closed by implementing the changes proposed in Issue #84.

The original suggestion is not correctly formed as discussed here; disableRemotePlayback applies to a single media element, not to background monitoring as a whole or any browser level controls that might require it.

I'm closing this, any further discussion of API behavior can continue in #84 or the forthcoming PR.

from remote-playback.

Related Issues (20)

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.