Bug 167010

Summary: Defer use of autoplay heuristics to clients
Product: WebKit Reporter: Matt Rajca <mrajca>
Component: MediaAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: commit-queue, sam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: Unspecified   
Description Flags
Patch none

Description Matt Rajca 2017-01-13 10:21:49 PST
Switch the autoplay policy tristate to an on/off option since clients should run any heuristics and simply send their final decision to WebKit.
Comment 1 Matt Rajca 2017-01-13 10:30:29 PST
Created attachment 298769 [details]
Comment 2 Sam Weinig 2017-01-13 10:33:36 PST
Comment on attachment 298769 [details]

API test?
Comment 3 Matt Rajca 2017-01-13 10:43:50 PST
(In reply to comment #2)
> Comment on attachment 298769 [details]
> Patch
> API test?

This isn't wired up yet so it'd be hard to test, seeing how the other API tests work. I'll add tests once these flags actually affect media element (coming soon).
Comment 4 Alex Christensen 2017-01-13 10:53:19 PST
Comment on attachment 298769 [details]

Yep, this simplifies SPI that doesn't do anything yet.  r=me
Comment 5 Sam Weinig 2017-01-13 10:55:00 PST
Please don't add stub API in the future.
Comment 6 WebKit Commit Bot 2017-01-13 11:17:40 PST
Comment on attachment 298769 [details]

Clearing flags on attachment: 298769

Committed r210737: <http://trac.webkit.org/changeset/210737>
Comment 7 WebKit Commit Bot 2017-01-13 11:17:45 PST
All reviewed patches have been landed.  Closing bug.