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 |
11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
12 * | 12 * |
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 [ | 26 [ |
27 EnabledAtRuntime=media, | 27 EnabledAtRuntime=Media, |
28 ActiveDOMObject | 28 ActiveDOMObject |
29 ] interface HTMLMediaElement : HTMLElement { | 29 ] interface HTMLMediaElement : HTMLElement { |
30 | 30 |
31 // error state | 31 // error state |
32 readonly attribute MediaError error; | 32 readonly attribute MediaError error; |
33 | 33 |
34 // network state | 34 // network state |
35 [Reflect, URL] attribute DOMString src; | 35 [Reflect, URL] attribute DOMString src; |
36 [URL] readonly attribute DOMString currentSrc; | 36 [URL] readonly attribute DOMString currentSrc; |
37 | 37 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 attribute boolean webkitPreservesPitch; | 81 attribute boolean webkitPreservesPitch; |
82 | 82 |
83 readonly attribute boolean webkitHasClosedCaptions; | 83 readonly attribute boolean webkitHasClosedCaptions; |
84 attribute boolean webkitClosedCaptionsVisible; | 84 attribute boolean webkitClosedCaptionsVisible; |
85 | 85 |
86 // The number of bytes consumed by the media decoder. | 86 // The number of bytes consumed by the media decoder. |
87 readonly attribute unsigned long webkitAudioDecodedByteCount; | 87 readonly attribute unsigned long webkitAudioDecodedByteCount; |
88 readonly attribute unsigned long webkitVideoDecodedByteCount; | 88 readonly attribute unsigned long webkitVideoDecodedByteCount; |
89 | 89 |
90 // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is read
y. | 90 // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is read
y. |
91 [EnabledAtRuntime=legacyEncryptedMedia, RaisesException] void webkitGenerateKeyR
equest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem
, optional Uint8Array initData); | 91 [EnabledAtRuntime=LegacyEncryptedMedia, RaisesException] void webkitGenerateKeyR
equest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem
, optional Uint8Array initData); |
92 [EnabledAtRuntime=legacyEncryptedMedia, RaisesException] void webkitAddKey([Trea
tNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8Array
key, optional Uint8Array initData, [Default=NullString] optional DOMString sess
ionId); | 92 [EnabledAtRuntime=LegacyEncryptedMedia, RaisesException] void webkitAddKey([Trea
tNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8Array
key, optional Uint8Array initData, [Default=NullString] optional DOMString sess
ionId); |
93 [EnabledAtRuntime=legacyEncryptedMedia, RaisesException] void webkitCancelKeyReq
uest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem,
[Default=NullString] optional DOMString sessionId); | 93 [EnabledAtRuntime=LegacyEncryptedMedia, RaisesException] void webkitCancelKeyReq
uest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem,
[Default=NullString] optional DOMString sessionId); |
94 | 94 |
95 [EnabledAtRuntime=legacyEncryptedMedia] attribute EventHandler onwebkitkeyadded; | 95 [EnabledAtRuntime=LegacyEncryptedMedia] attribute EventHandler onwebkitkeyadded; |
96 [EnabledAtRuntime=legacyEncryptedMedia] attribute EventHandler onwebkitkeyerror; | 96 [EnabledAtRuntime=LegacyEncryptedMedia] attribute EventHandler onwebkitkeyerror; |
97 [EnabledAtRuntime=legacyEncryptedMedia] attribute EventHandler onwebkitkeymessag
e; | 97 [EnabledAtRuntime=LegacyEncryptedMedia] attribute EventHandler onwebkitkeymessag
e; |
98 [EnabledAtRuntime=legacyEncryptedMedia] attribute EventHandler onwebkitneedkey; | 98 [EnabledAtRuntime=LegacyEncryptedMedia] attribute EventHandler onwebkitneedkey; |
99 | 99 |
100 [EnabledAtRuntime=encryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Medi
aKeys mediaKeys; | 100 [EnabledAtRuntime=EncryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Medi
aKeys mediaKeys; |
101 | 101 |
102 [EnabledAtRuntime=videoTrack, RaisesException] TextTrack addTextTrack(DOMString
kind, optional DOMString label, optional DOMString language); | 102 [EnabledAtRuntime=VideoTrack, RaisesException] TextTrack addTextTrack(DOMString
kind, optional DOMString label, optional DOMString language); |
103 [EnabledAtRuntime=videoTrack] readonly attribute TextTrackList textTracks; | 103 [EnabledAtRuntime=VideoTrack] readonly attribute TextTrackList textTracks; |
104 | 104 |
105 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; | 105 [Reflect, TreatNullAs=NullString] attribute DOMString mediaGroup; |
106 [CustomSetter] attribute MediaController controller; | 106 [CustomSetter] attribute MediaController controller; |
107 }; | 107 }; |
OLD | NEW |