Bug 171863

Summary: Let clients distinguish first auto-play events
Product: WebKit Reporter: Matt Rajca <mrajca>
Component: MediaAssignee: Matt Rajca <mrajca>
Status: NEW ---    
Severity: Normal CC: achristensen
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch achristensen: review-

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.