Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/WebKit/LayoutTests/media/audio-autoplay-experiment-modes.html

Issue 2510353004: Deprecating AutoplayExperimentHelper (Closed)
Patch Set: rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <video autoplay controls></video>
4 <script src="media-file.js"></script>
5 <script src="autoplay-experiment-helper.js"></script>
6 <body>
7 <pre>
8 Check if the autoplay gesture override experiment works. There are a lot
9 of config options, so this test just runs all of them.
10
11 The "results" table contains one row per config tested.
12 == Test Inputs ==
13 # - config number, in case you'd like to run just one.
14 Flags - autoplay experiment setting being tested.
15 a - "foraudio"
16 v - "forvideo"
17 V - "ifviewport"
18 P - "ifpagevisible"
19 M - "ifmuted"
20 p - "playmuted"
21 m - "ifmobile"
22 For example, vM means '-forvideo-ifmuted".
23 Type - audio or video element?
24 audio - <audio>
25 video - <video>
26 Play w/- how is play requested?
27 none - play is not requested.
28 attr - autoplay attribute is set on the element.
29 play() - play() called after media is ready to play.
30 Mute - how is media muted?
31 no - media is not muted.
32 yes - muted attribute is set on the element.
33 Mobile - is page optimized for mobile?
34 no - page is not optimized for mobile.
35 yes - page is optimized for mobile.
36 View - is media in viewport?
37 onscreen - element starts out onscreen.
38 scroll - element starts offscreen, scrolled into view once
39 it is ready to play.
40 offscreen - element starts out offscreen and stays offscreen.
41 obscured - onscreen but page is not visible.
42 Setting - autoplay settings value
43 enabled - content settings enables autoplay
44 disabled - content settings disables autoplay
45
46 == Test Outputs ==
47 Early? - did playback start before element was scrolled onscreen? For
48 tests in which View!=scroll, this is reported as "-".
49 Played? - did playback start by the conclusion of the test?
50 Muted? - was the media muted? If the media didn't play, then this is
51 reported as "-".
52
53 </pre>
54 <table id="results">
55 <tr>
56 <td>#</td>
57 <td>Flags</td>
58 <td>Type</td>
59 <td>Play w/</td>
60 <td>Mute</td>
61 <td>Mobile</td>
62 <td>View</td>
63 <td>Setting</td>
64 <td>Early?</td>
65 <td>Played?</td>
66 <td>Muted?</td>
67 </tr>
68 </table>
69 </body>
70
71 <script>
72
73 start('audio', [ 'none',
74 'enabled-forvideo',
75 'enabled-foraudio',
76 'enabled-foraudio-ifviewport']);
77
78 </script>
79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698