| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 readonly attribute TimeRanges played; | 64 readonly attribute TimeRanges played; |
| 65 readonly attribute TimeRanges seekable; | 65 readonly attribute TimeRanges seekable; |
| 66 readonly attribute boolean ended; | 66 readonly attribute boolean ended; |
| 67 [Reflect] attribute boolean autoplay; | 67 [Reflect] attribute boolean autoplay; |
| 68 [Reflect] attribute boolean loop; | 68 [Reflect] attribute boolean loop; |
| 69 void play(); | 69 void play(); |
| 70 void pause(); | 70 void pause(); |
| 71 | 71 |
| 72 // media controller | 72 // media controller |
| 73 [Reflect] attribute DOMString mediaGroup; | 73 [Reflect] attribute DOMString mediaGroup; |
| 74 [CustomSetter] attribute MediaController controller; | 74 [StrictTypeChecking] attribute MediaController controller; |
| 75 | 75 |
| 76 // controls | 76 // controls |
| 77 attribute boolean controls; | 77 attribute boolean controls; |
| 78 [SetterRaisesException] attribute double volume; | 78 [SetterRaisesException] attribute double volume; |
| 79 attribute boolean muted; | 79 attribute boolean muted; |
| 80 [Reflect=muted] attribute boolean defaultMuted; | 80 [Reflect=muted] attribute boolean defaultMuted; |
| 81 | 81 |
| 82 // tracks | 82 // tracks |
| 83 [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks; | 83 [RuntimeEnabled=VideoTrack] readonly attribute TextTrackList textTracks; |
| 84 [RuntimeEnabled=VideoTrack, RaisesException] TextTrack addTextTrack(DOMStrin
g kind, optional DOMString label, optional DOMString language); | 84 [RuntimeEnabled=VideoTrack, RaisesException] TextTrack addTextTrack(DOMStrin
g kind, optional DOMString label, optional DOMString language); |
| 85 | 85 |
| 86 // WebKit extensions | 86 // WebKit extensions |
| 87 | 87 |
| 88 // The number of bytes consumed by the media decoder. | 88 // The number of bytes consumed by the media decoder. |
| 89 [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long w
ebkitAudioDecodedByteCount; | 89 [MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long w
ebkitAudioDecodedByteCount; |
| 90 [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long w
ebkitVideoDecodedByteCount; | 90 [MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long w
ebkitVideoDecodedByteCount; |
| 91 | 91 |
| 92 // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is
ready. | 92 // FIXME: add DeprecateAs=PrefixedMediaGenerateKeyRequest when MediaKeys is
ready. |
| 93 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitGenerate
KeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySy
stem, optional Uint8Array initData); | 93 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitGenerate
KeyRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySy
stem, optional Uint8Array initData); |
| 94 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([
TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8A
rray key, optional Uint8Array initData, [Default=NullString] optional DOMString
sessionId); | 94 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitAddKey([
TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, Uint8A
rray key, optional Uint8Array initData, [Default=NullString] optional DOMString
sessionId); |
| 95 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKe
yRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySyst
em, [Default=NullString] optional DOMString sessionId); | 95 [RuntimeEnabled=PrefixedEncryptedMedia, RaisesException] void webkitCancelKe
yRequest([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString keySyst
em, [Default=NullString] optional DOMString sessionId); |
| 96 | 96 |
| 97 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad
ded; | 97 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyad
ded; |
| 98 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer
ror; | 98 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyer
ror; |
| 99 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme
ssage; | 99 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitkeyme
ssage; |
| 100 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk
ey; | 100 [RuntimeEnabled=PrefixedEncryptedMedia] attribute EventHandler onwebkitneedk
ey; |
| 101 | 101 |
| 102 [RuntimeEnabled=EncryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Me
diaKeys mediaKeys; | 102 [RuntimeEnabled=EncryptedMedia, Conditional=ENCRYPTED_MEDIA_V2] attribute Me
diaKeys mediaKeys; |
| 103 }; | 103 }; |
| OLD | NEW |