Intent to Implement and Experiment: Skip Ad in Picture-in-Picture window

1,021 views
Skip to first unread message

François Beaufort

unread,
Feb 4, 2019, 2:40:52 PM2/4/19
to blink-dev

Contact emails

fbea...@chromium.org, mlam...@chromium.org


Explainer

https://github.com/WICG/mediasession/pull/203

Design doc/Spec

https://wicg.github.io/mediasession/#dom-mediasessionaction-skipad

Summary

Show a “Skip Ad” button in Picture-in-Picture window that websites can be notified when user interact with.

Motivation

Video advertisement model usually consist of pre-roll ads. Content providers often provide the ability to skip the ad after a few seconds. The Picture-in-Picture window being not interactive, users watching a video in Picture-in-Picture can’t do this today. This feature will allow websites to offer this experience also in the Picture-in-Picture window. This is one of the most common feature requests around Picture-in-Picture.


Risks

Interoperability and Compatibility

Safari has shipped a vendor-prefixed API for Picture-in-Picture and we’re working with them on the integration of the Media Session in Picture-in-Picture.


Edge: Public support

Firefox: No signals

Safari: Public support

Web / Framework developers: Positive


Activation

Web developers will be able to simply set/unset a media session action handler for “Skip Ad” to control the visibility of the button in the Picture-in-Picture window.
Developer documentation will cover this feature as we did before at https://developers.google.com/web/updates/2017/02/media-session.


Goals for experimentation

  • Gather feedback about the shape of the API

  • Validate that the API provides sufficient functionality for content providers using it to deliver user value. This will be measured by:

    • content providers that join the origin trial and choose to share their feedback

    • watch time that occurs in Picture in Picture mode


Experimental timeline

  • Starts around M73 Beta release, 2019-02-07

  • Expires when M74 Stable is cut, around 2019-04-16


Any risks when the experiment finishes?

No significant risks - content providers will feature detect and fall back to their current behavior when we disable the origin trial.


Ongoing technical constraints

None


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

The feature will be supported on all platforms that currently support the Picture-in-Picture API.


Link to entry on the feature dashboard

https://www.chromestatus.com/feature/4749278882824192


Yoav Weiss

unread,
Feb 7, 2019, 8:24:52 AM2/7/19
to François Beaufort, blink-dev
LGTM to experiment

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b8a46914-72f6-4bc2-a5ba-d10db89ce6f0%40chromium.org.

François Beaufort

unread,
Feb 7, 2019, 3:51:14 PM2/7/19
to blink-dev, beaufort...@gmail.com
After more thoughts, we'd like to extend the original trial to expire when M75 Stable is cut, instead of M74 Stable cut.
Note that the origin trial didn't start yet.

Yoav Weiss

unread,
Feb 10, 2019, 5:08:11 AM2/10/19
to François Beaufort, blink-dev

Jiaming Cheng

unread,
May 17, 2024, 4:39:17 PMMay 17
to blink-dev, Yoav Weiss, blink-dev, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort
Hi team, 

This feature was initially proposed and implemented 4 years ago but remained disabled due to a lack of practical use cases. Given our team's (chromeOS UI team) plan to use this SkipAd action in our upcoming project, we are now resending this intent email for LGTMs. Please let me know if you have any questions :]


Below are the auto generated intent content:
Contact emailsfbea...@chromium.orgmlam...@chromium.orgjiam...@chromium.org

ExplainerNone

Specificationhttps://wicg.github.io/picture-in-picture/#media-session

Design docs
https://developers.google.com/web/updates/2019/02/chrome-73-media-updates#skipad
https://github.com/WICG/mediasession/pull/203

Summary

Support the SkipAd media session action. This skipad action allows Chrome to show a button in the system media controls or in the PiP window.



Blink componentBlink>Media>PictureInPicture

TAG review: 
https://github.com/w3ctag/design-reviews/issues/957

TAG review statusPending

Chromium Trial NameSkipAd

Link to origin trial feedback summaryhttps://github.com/WICG/picture-in-picture/issues

Origin Trial documentation linkhttps://wicg.github.io/mediasession/#dom-mediasessionaction-skipad

Risks
And a new one created: https://github.com/WebKit/standards-positions/issues/350

Web developers: Positive

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?No

Is this feature fully tested by web-platform-tests?No

Flag name on chrome://flagsNone

Finch feature nameNone

Non-finch justificationNone

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=910436

Sample links
https://googlechrome.github.io/samples/picture-in-picture/skip-ad.html

Estimated milestones
Shipping on desktop

127

Origin trial desktop first

73

Origin trial desktop last

74


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None

Link to entry on the Chrome Platform Statushttps://chromestatus.com/feature/4749278882824192?gate=4775000754618368

Links to previous Intent discussionsIntent to Experiment: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/l6sW0G4jzhE

Daniel Bratell

unread,
May 22, 2024, 10:36:32 AMMay 22
to Jiaming Cheng, blink-dev, Yoav Weiss, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort, Jason Robbins

Unfortunately it doesn't show up in the API Owner UI/ToDo list and I can't directly see how to make it appear. jrobbins, is there anything strange with this one? It is very old so it might be different from anything done the last couple of years.

/Daniel

Chris Harrelson

unread,
May 22, 2024, 10:44:06 AMMay 22
to Daniel Bratell, Jiaming Cheng, blink-dev, Yoav Weiss, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort, Jason Robbins
I went ahead and marked the review as started on chromestatus.com.

Chris Harrelson

unread,
May 23, 2024, 3:29:47 PMMay 23
to Daniel Bratell, Jiaming Cheng, blink-dev, Yoav Weiss, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort, Jason Robbins
Are you looking to ship this feature or just experiment? If you're looking to ship please send a new email with a corrected subject and contents, and request API owners review on chromestatus.com.

Jiaming Cheng

unread,
May 23, 2024, 4:10:47 PMMay 23
to Chris Harrelson, Daniel Bratell, blink-dev, Yoav Weiss, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort, Jason Robbins
Hi Chris,

We are looking to ship this feature to Stable. We have reused an existing chromestatus (https://chromestatus.com/feature/4749278882824192?gate=4775000754618368) and updated almost every section, including filling all the "Prepare to Ship" section. This email was automatically generated by the "API Owners Review" step in that section after each individual section was approved. I have quoted the previous email thread in this email for additional context. 

If you have any further questions or concerns, please let us know.

Thanks,
Jiaming

Chris Harrelson

unread,
May 23, 2024, 4:13:19 PMMay 23
to Jiaming Cheng, Daniel Bratell, blink-dev, Yoav Weiss, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort, Jason Robbins
On Thu, May 23, 2024 at 1:10 PM Jiaming Cheng <jiam...@google.com> wrote:
Hi Chris,

We are looking to ship this feature to Stable. We have reused an existing chromestatus (https://chromestatus.com/feature/4749278882824192?gate=4775000754618368) and updated almost every section, including filling all the "Prepare to Ship" section. This email was automatically generated by the "API Owners Review" step in that section after each individual section was approved. I have quoted the previous email thread in this email for additional context. 

Ok. Please then start a new thread (or reply with a change of subject) to "Intent to ship: Skip Ad in Picture-in-Picture window"

Jiaming Cheng

unread,
May 23, 2024, 4:28:03 PMMay 23
to Chris Harrelson, Daniel Bratell, blink-dev, Yoav Weiss, François Beaufort, Alex Newcomer, Megan Fu, Tommy Steimel, François Beaufort, Jason Robbins

Alex Russell

unread,
May 29, 2024, 12:04:21 PMMay 29
to blink-dev, Jiaming Cheng, Daniel Bratell, blink-dev, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, fbea...@google.com, Jason Robbins, Chris Harrelson
Hey folks,

A few questions from today's API OWNERS:

  • Are you investigating a generic action button type, the way we've added one for Notifications?
  • If you have investigated that, would this feature be better as a custom user/developer action?
  • Have you asked the TAG about consistency w/ Notification Actions for this design? and, most importantly...
  • Has there been developer feedback that supports this, either from OT or from community feedback more generally?
Best,

Alex

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Jiaming Cheng

unread,
Jun 4, 2024, 4:33:28 PMJun 4
to Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, fbea...@google.com, Jason Robbins, Chris Harrelson
Hey Alex,

Thanks for your feedback! I have talked with the previous owner (fbeaufort@) of this feature. Please see our answers below inline.
  • Are you investigating a generic action button type, the way we've added one for Notifications?
  • If you have investigated that, would this feature be better as a custom user/developer action?
The skipAd media session action is not related to Notifications at all. It is a common media action like play, pause, next, previous, skip, etc.  
See historical PR that was approved by Media Session folks: https://github.com/w3c/mediasession/pull/203#issuecomment-432529816

  • Have you asked the TAG about consistency w/ Notification Actions for this design? and, most importantly...
The TAG folks have not started talking about this yet at https://github.com/w3ctag/design-reviews/issues/957

  • Has there been developer feedback that supports this, either from OT or from community feedback more generally?
Our team (ChromeOS) and the Youtube team are recently planning to integrate this feature in our upcoming project, so that's why we are now proposing to enable it.


Let me know if you have any other questions :]


Best,
Jiaming

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Philip Jägenstedt

unread,
Jun 5, 2024, 11:49:55 AMJun 5
to Jiaming Cheng, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, fbea...@google.com, Jason Robbins, Chris Harrelson
Hi Jiaming,

This feature has previously come across my radar as it appears in MDN to be implemented by both Firefox and Safari already:

Is this accurate, is it in fact already implemented in Firefox and Safari?

Best regards,
Philip

François Beaufort

unread,
Jun 5, 2024, 12:46:29 PMJun 5
to Philip Jägenstedt, Jiaming Cheng, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, Jason Robbins, Chris Harrelson
On Wed, Jun 5, 2024 at 5:49 PM Philip Jägenstedt <foo...@chromium.org> wrote:
Hi Jiaming,

This feature has previously come across my radar as it appears in MDN to be implemented by both Firefox and Safari already:

Is this accurate, is it in fact already implemented in Firefox and Safari?

 
From what I can see in https://bugs.webkit.org/show_bug.cgi?id=217797, WebKit implements SkipAd.
Firefox also implements it according to https://bugzilla.mozilla.org/show_bug.cgi?id=1582569

Jiaming Cheng

unread,
Jun 10, 2024, 6:14:14 PMJun 10
to François Beaufort, Philip Jägenstedt, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, Jason Robbins, Chris Harrelson
Thanks François for the info! 

Hi Philip, please let us know if you have any other questions or concerns :]

Best,
Jiaming

Yoav Weiss (@Shopify)

unread,
Jun 11, 2024, 3:42:40 AMJun 11
to Jiaming Cheng, François Beaufort, Philip Jägenstedt, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, Jason Robbins, Chris Harrelson
LGTM1

On Tue, Jun 11, 2024 at 12:14 AM 'Jiaming Cheng' via blink-dev <blin...@chromium.org> wrote:
Thanks François for the info! 

Hi Philip, please let us know if you have any other questions or concerns :]

Best,
Jiaming

On Wed, Jun 5, 2024 at 9:46 AM François Beaufort <fbea...@google.com> wrote:


On Wed, Jun 5, 2024 at 5:49 PM Philip Jägenstedt <foo...@chromium.org> wrote:
Hi Jiaming,

This feature has previously come across my radar as it appears in MDN to be implemented by both Firefox and Safari already:

Is this accurate, is it in fact already implemented in Firefox and Safari?

 
From what I can see in https://bugs.webkit.org/show_bug.cgi?id=217797, WebKit implements SkipAd.
Firefox also implements it according to https://bugzilla.mozilla.org/show_bug.cgi?id=1582569

In that case we shouldn't have filed positions and a TAG review..
 

Vladimir Levin

unread,
Jun 11, 2024, 2:21:47 PMJun 11
to Yoav Weiss (@Shopify), Jiaming Cheng, François Beaufort, Philip Jägenstedt, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, Jason Robbins, Chris Harrelson

Mike Taylor

unread,
Jun 11, 2024, 6:19:13 PMJun 11
to Vladimir Levin, Yoav Weiss (@Shopify), Jiaming Cheng, François Beaufort, Philip Jägenstedt, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, Jason Robbins, Chris Harrelson

Jiaming Cheng

unread,
Jun 11, 2024, 7:19:55 PMJun 11
to Mike Taylor, Vladimir Levin, Yoav Weiss (@Shopify), François Beaufort, Philip Jägenstedt, Alex Russell, blink-dev, Daniel Bratell, yo...@yoav.ws, beaufort...@gmail.com, Alex Newcomer, Megan Fu, Tommy Steimel, Jason Robbins, Chris Harrelson
Thanks everyone for the LGTMs :]
Reply all
Reply to author
Forward
0 new messages