Comments (6)
Why would you need to run the steps to monitor available playback devices if you already know the video cannot be remoted? It seems like it's worthwhile to keep this optimization.
from remote-playback.
I agree with @mfoltzgoogle
from remote-playback.
I think the algorithm wouldn't prevent the user agent from early exit (we could add a note for that).
My reasoning was that the algorithm now has two exit points where the promise is rejected with the same exception and the difference seems to be very subtle and hard to understand for web authors (even I had to read it a couple of times before I remembered what it is). Maybe we should just rephrase those.
from remote-playback.
I think rephrasing would be good. FWIW, ideally, it shouldn't matter for web authors. Actually, the only thing that bothers me about this step is that it is before the check for "is allowed to show pop up" which means that a web author could figure which formats can be played by calling prompt()
on different <video>
. In other words, it makes the step observable while in principle, it's mostly an optimization. I would be in favour to swap steps 5 and 6 and rephrase.
from remote-playback.
There are three other issues I noted when preparing #76.
- I don't see a guarantee that the steps to start monitoring devices in 7 complete before step 9 is encountered. If they don't happen to find a device in time, then prompt will reject.
- If the steps to monitor do complete, then steps 8 and 9 seem to be equivalent: if a compatible remote playback device is found, then availability must be set to true?
- Steps 9 throws
NotSupportedError
while Presentation API throwsNotFoundError
for this case.
I think the simplest thing to do is to drop step 9. This leaves 8 for the case where the user agent knows that there will never be a compatible device, e.g. because discovery failed to start or it is in a stable state from a previous call. WDYT?
from remote-playback.
SGTM
from remote-playback.
Related Issues (20)
- Use [Exposed=Window]
- Add explicit text to define the disableRemotePlayback content attribute
- Restrict the API to Secure Contexts or discuss the decision in Security Considerations HOT 1
- Rephrase normative statement in security and privacy consideration section HOT 1
- Compatibility of Remote Playback API with AirPlay mirroring HOT 2
- [Chrome 64] The RemotePlayback API is disabled on this platform HOT 4
- Chromecast TV not detected HOT 5
- Define remote playback interaction with background playback policies HOT 3
- Explore polyfilling Remote Playback API on top of Presentation API HOT 1
- Support for TTML and IMSC captions HOT 1
- How does remote playback interact with EME? HOT 4
- RemotePlaybackState enum can become misleading when changing media.src HOT 17
- Specify the task source for each task to be enqueued HOT 1
- [meta] Publish Proposed Recommendation HOT 2
- Allow adapting the bitrate to network/receiver constraints when using MSE
- Export terms HOT 2
- A
- render a dummy video/progress bar HOT 1
- example HOT 2
- check on the flag to activate the Remote Playback API on desktop HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remote-playback.