OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // ready state | 55 // ready state |
56 const unsigned short HAVE_NOTHING = 0; | 56 const unsigned short HAVE_NOTHING = 0; |
57 const unsigned short HAVE_METADATA = 1; | 57 const unsigned short HAVE_METADATA = 1; |
58 const unsigned short HAVE_CURRENT_DATA = 2; | 58 const unsigned short HAVE_CURRENT_DATA = 2; |
59 const unsigned short HAVE_FUTURE_DATA = 3; | 59 const unsigned short HAVE_FUTURE_DATA = 3; |
60 const unsigned short HAVE_ENOUGH_DATA = 4; | 60 const unsigned short HAVE_ENOUGH_DATA = 4; |
61 readonly attribute unsigned short readyState; | 61 readonly attribute unsigned short readyState; |
62 readonly attribute boolean seeking; | 62 readonly attribute boolean seeking; |
63 | 63 |
64 // playback state | 64 // playback state |
65 attribute float currentTime | 65 attribute double currentTime |
66 setter raises (DOMException); | 66 setter raises (DOMException); |
67 readonly attribute double initialTime; | 67 readonly attribute double initialTime; |
68 readonly attribute float startTime; | 68 readonly attribute double startTime; |
69 readonly attribute float duration; | 69 readonly attribute double duration; |
70 readonly attribute boolean paused; | 70 readonly attribute boolean paused; |
71 attribute float defaultPlaybackRate; | 71 attribute double defaultPlaybackRate; |
72 attribute float playbackRate; | 72 attribute double playbackRate; |
73 readonly attribute TimeRanges played; | 73 readonly attribute TimeRanges played; |
74 readonly attribute TimeRanges seekable; | 74 readonly attribute TimeRanges seekable; |
75 readonly attribute boolean ended; | 75 readonly attribute boolean ended; |
76 attribute [Reflect] boolean autoplay; | 76 attribute [Reflect] boolean autoplay; |
77 attribute [Reflect] boolean loop; | 77 attribute [Reflect] boolean loop; |
78 void play(); | 78 void play(); |
79 void pause(); | 79 void pause(); |
80 | 80 |
81 // controls | 81 // controls |
82 attribute boolean controls; | 82 attribute boolean controls; |
83 attribute float volume | 83 attribute double volume |
84 setter raises (DOMException); | 84 setter raises (DOMException); |
85 attribute boolean muted; | 85 attribute boolean muted; |
86 attribute [Reflect=muted] boolean defaultMuted; | 86 attribute [Reflect=muted] boolean defaultMuted; |
87 | 87 |
88 // WebKit extensions | 88 // WebKit extensions |
89 attribute boolean webkitPreservesPitch; | 89 attribute boolean webkitPreservesPitch; |
90 | 90 |
91 readonly attribute boolean webkitHasClosedCaptions; | 91 readonly attribute boolean webkitHasClosedCaptions; |
92 attribute boolean webkitClosedCaptionsVisible; | 92 attribute boolean webkitClosedCaptionsVisible; |
93 | 93 |
(...skipping 20 matching lines...) Expand all Loading... |
114 | 114 |
115 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK | 115 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK |
116 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString kind,
in [Optional] DOMString label, in [Optional] DOMString language) | 116 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString kind,
in [Optional] DOMString label, in [Optional] DOMString language) |
117 raises (DOMException); | 117 raises (DOMException); |
118 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textTrack
s; | 118 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textTrack
s; |
119 #endif | 119 #endif |
120 | 120 |
121 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; | 121 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; |
122 attribute [CustomSetter] MediaController controller; | 122 attribute [CustomSetter] MediaController controller; |
123 }; | 123 }; |
OLD | NEW |