| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2010, 2011 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 readonly attribute boolean webkitHasClosedCaptions; | 91 readonly attribute boolean webkitHasClosedCaptions; |
| 92 attribute boolean webkitClosedCaptionsVisible; | 92 attribute boolean webkitClosedCaptionsVisible; |
| 93 | 93 |
| 94 // The number of bytes consumed by the media decoder. | 94 // The number of bytes consumed by the media decoder. |
| 95 readonly attribute [Conditional=MEDIA_STATISTICS] unsigned long webkitAudioD
ecodedByteCount; | 95 readonly attribute [Conditional=MEDIA_STATISTICS] unsigned long webkitAudioD
ecodedByteCount; |
| 96 readonly attribute [Conditional=MEDIA_STATISTICS] unsigned long webkitVideoD
ecodedByteCount; | 96 readonly attribute [Conditional=MEDIA_STATISTICS] unsigned long webkitVideoD
ecodedByteCount; |
| 97 | 97 |
| 98 #if defined(ENABLE_MEDIA_SOURCE) && ENABLE_MEDIA_SOURCE | 98 #if defined(ENABLE_MEDIA_SOURCE) && ENABLE_MEDIA_SOURCE |
| 99 // URL passed to src attribute to enable the media source logic. | 99 // URL passed to src attribute to enable the media source logic. |
| 100 readonly attribute [V8EnabledAtRuntime=mediaSource, URL] DOMString webkitMed
iaSourceURL; | 100 readonly attribute [V8EnabledAtRuntime=mediaSource, URL] DOMString webkitMed
iaSourceURL; |
| 101 | |
| 102 // Manages IDs for appending media to the source. | |
| 103 [V8EnabledAtRuntime=mediaSource] void webkitSourceAddId(in DOMString id, in
DOMString type) raises (DOMException); | |
| 104 [V8EnabledAtRuntime=mediaSource] void webkitSourceRemoveId(in DOMString id)
raises (DOMException); | |
| 105 | |
| 106 // Returns the time ranges buffered for a specific source ID. | |
| 107 [V8EnabledAtRuntime=mediaSource] TimeRanges webkitSourceBuffered(in DOMStrin
g id) raises (DOMException); | |
| 108 | |
| 109 // Appends segment data. | |
| 110 [V8EnabledAtRuntime=mediaSource] void webkitSourceAppend(in DOMString id, in
Uint8Array data) raises (DOMException); | |
| 111 | |
| 112 // Aborts the current segment. | |
| 113 [V8EnabledAtRuntime=mediaSource] void webkitSourceAbort(in DOMString id) rai
ses (DOMException); | |
| 114 | |
| 115 // Signals the end of stream. | |
| 116 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NO_ERROR = 0; // E
nd of stream reached w/o error. | |
| 117 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NETWORK_ERR = 1; /
/ A network error triggered end of stream. | |
| 118 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_DECODE_ERR = 2; //
A decode error triggered end of stream. | |
| 119 [V8EnabledAtRuntime=mediaSource] void webkitSourceEndOfStream(in unsigned sh
ort status) raises (DOMException); | |
| 120 | |
| 121 // Indicates the current state of the media source. | |
| 122 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_CLOSED = 0; | |
| 123 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_OPEN = 1; | |
| 124 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_ENDED = 2; | |
| 125 readonly attribute [V8EnabledAtRuntime=mediaSource] unsigned short webkitSou
rceState; | |
| 126 | |
| 127 attribute [V8EnabledAtRuntime=mediaSource] EventListener onwebkitsourceopen; | |
| 128 attribute [V8EnabledAtRuntime=mediaSource] EventListener onwebkitsourceended
; | |
| 129 attribute [V8EnabledAtRuntime=mediaSource] EventListener onwebkitsourceclose
; | |
| 130 #endif | 101 #endif |
| 131 | 102 |
| 132 #if defined(ENABLE_ENCRYPTED_MEDIA) && ENABLE_ENCRYPTED_MEDIA | 103 #if defined(ENABLE_ENCRYPTED_MEDIA) && ENABLE_ENCRYPTED_MEDIA |
| 133 [V8EnabledAtRuntime=encryptedMedia] void webkitGenerateKeyRequest(in [TreatN
ullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional
] Uint8Array initData) | 104 [V8EnabledAtRuntime=encryptedMedia] void webkitGenerateKeyRequest(in [TreatN
ullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional
] Uint8Array initData) |
| 134 raises (DOMException); | 105 raises (DOMException); |
| 135 [V8EnabledAtRuntime=encryptedMedia] void webkitAddKey(in [TreatNullAs=NullSt
ring, TreatUndefinedAs=NullString] DOMString keySystem, in Uint8Array key, in [O
ptional] Uint8Array initData, in [Optional=DefaultIsNullString] DOMString sessio
nId) | 106 [V8EnabledAtRuntime=encryptedMedia] void webkitAddKey(in [TreatNullAs=NullSt
ring, TreatUndefinedAs=NullString] DOMString keySystem, in Uint8Array key, in [O
ptional] Uint8Array initData, in [Optional=DefaultIsNullString] DOMString sessio
nId) |
| 136 raises (DOMException); | 107 raises (DOMException); |
| 137 [V8EnabledAtRuntime=encryptedMedia] void webkitCancelKeyRequest(in [TreatNul
lAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional=D
efaultIsNullString] DOMString sessionId) | 108 [V8EnabledAtRuntime=encryptedMedia] void webkitCancelKeyRequest(in [TreatNul
lAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional=D
efaultIsNullString] DOMString sessionId) |
| 138 raises (DOMException); | 109 raises (DOMException); |
| 139 | 110 |
| 140 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyadded
; | 111 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyadded
; |
| 141 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyerror
; | 112 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyerror
; |
| 142 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeymessa
ge; | 113 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeymessa
ge; |
| 143 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitneedkey; | 114 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitneedkey; |
| 144 #endif | 115 #endif |
| 145 | 116 |
| 146 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK | 117 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK |
| 147 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString ki
nd, in [Optional] DOMString label, in [Optional] DOMString language) | 118 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString ki
nd, in [Optional] DOMString label, in [Optional] DOMString language) |
| 148 raises (DOMException); | 119 raises (DOMException); |
| 149 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textT
racks; | 120 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textT
racks; |
| 150 #endif | 121 #endif |
| 151 | 122 |
| 152 attribute [Reflect, TreatNullAs=NullString] DOMString mediaGroup; | 123 attribute [Reflect, TreatNullAs=NullString] DOMString mediaGroup; |
| 153 attribute [CustomSetter] MediaController controller; | 124 attribute [CustomSetter] MediaController controller; |
| 154 }; | 125 }; |
| 155 } | 126 } |
| OLD | NEW |