Bug 171863 - Let clients distinguish first auto-play events
Summary: Let clients distinguish first auto-play events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matt Rajca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 10:22 PDT by Matt Rajca
Modified: 2017-05-09 13:49 PDT (History)
1 user (show)

See Also:


Attachments
Patch (10.94 KB, patch)
2017-05-09 13:43 PDT, Matt Rajca
achristensen: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rajca 2017-05-09 10:22:08 PDT
Tell clients when an auto-play event is the first one for a given media element so they can filter out subsequent ones if they wish.

<rdar://problem/31596617>
Comment 1 Matt Rajca 2017-05-09 13:43:25 PDT
Created attachment 309532 [details]
Patch
Comment 2 Alex Christensen 2017-05-09 13:49:32 PDT
Comment on attachment 309532 [details]
Patch

This should be done per page in the client application.  Keeping a bit on an HTMLMediaElement doesn't mean anything because media elements can be dynamically created and destroyed.