-
Notifications
You must be signed in to change notification settings - Fork 141
Document the Picture-in-Picture API #3425
Comments
Just to note that this was positively reviewed by the TAG in 2018 and as part of that review an explainer was produced. That explainer may provide fodder for a MDN page. Also, this came to my attention because of its use on Whereby.com. |
I'd be happy to take on that task if no one has claimed it already Edit: Could someone grant me permissions to create a new page. My MDN username is |
Happy to let you have it, @gsouquet , thanks! Basically, the first thing to do is work out what pages need creating, then start to create the pages in the structure, as subpages of the main Web/API page. Use an existing API ref as a template. Let me know if you have any questions. |
I believe I have reached a good stage for my content to be reviewed (ping @chrisdavidmills ). I have learned quite a far bit on the way, and mess a few things on the way (damn slugs...). Below is a list of the thing that would need your attention
Two further questions that I should be able to sort out by myself but were slightly unclear:
Thank you in advance for your review 🙌 |
OK, reviewed! For a start, wow, thanks for all this great work @gsouquet! This is a huge amount of work, and it is mostly looking really good. I've looked over it and identified a bunch of nitpicks, but nothing particularly major. General:
I check the example in Chrome and it seemed to work correctly. Are you saying that something is missing from the MDN platform here? The subject of being able to set feature requests on example embed https://wiki.developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API
On the subject of events:
https://wiki.developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API/GuideThis page needs to be written — it would be really helpful to have a short guide that explains how your example works. https://wiki.developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindowAs described earlier, amalgamate the "Events" and "Event handlers" section. https://wiki.developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindowThe main interface page, width, and height pages could do with an "Examples" section. HTMLVideoElement pages
|
Thank you for you very thorough review! The example is working as expected, I was just testing it in Firefox (lol)... where the feature is not yet implemented.\ https://wiki.developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API
https://wiki.developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow
HTMLVideoElement pages
PictureInPictureEvent
|
@gsouquet thanks again for all the great work. Few more bits of feedback. https://wiki.developer.mozilla.org/en-US/docs/Web/API/Picture-in-Picture_API
|
The Picture-in-Picture API (https://w3c.github.io/picture-in-picture/) needs to be documented. Firefox does not currently implement it but it's supported in current Chrome and Edge, Safari 13.1 on macOS, and is coming up on iOS/iPadOS in Safari 14. Since it's in Blink, presumably it's coming up in Opera soon as well.
Firefox's implementation bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1463402
The text was updated successfully, but these errors were encountered: