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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 101 |
102 // Appends media to to the source. | 102 // Manages IDs for appending media to the source. |
103 [V8EnabledAtRuntime=mediaSource] void webkitSourceAppend(in Uint8Array data)
raises (DOMException); | 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); |
104 | 114 |
105 // Signals the end of stream. | 115 // Signals the end of stream. |
106 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NO_ERROR = 0; // E
nd of stream reached w/o error. | 116 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NO_ERROR = 0; // E
nd of stream reached w/o error. |
107 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NETWORK_ERR = 1; /
/ A network error triggered end of stream. | 117 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NETWORK_ERR = 1; /
/ A network error triggered end of stream. |
108 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_DECODE_ERR = 2; //
A decode error triggered end of stream. | 118 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_DECODE_ERR = 2; //
A decode error triggered end of stream. |
109 [V8EnabledAtRuntime=mediaSource] void webkitSourceEndOfStream(in unsigned sh
ort status) raises (DOMException); | 119 [V8EnabledAtRuntime=mediaSource] void webkitSourceEndOfStream(in unsigned sh
ort status) raises (DOMException); |
110 | 120 |
111 // Indicates the current state of the media source. | 121 // Indicates the current state of the media source. |
112 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_CLOSED = 0; | 122 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_CLOSED = 0; |
113 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_OPEN = 1; | 123 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_OPEN = 1; |
114 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_ENDED = 2; | 124 [V8EnabledAtRuntime=mediaSource] const unsigned short SOURCE_ENDED = 2; |
115 readonly attribute [V8EnabledAtRuntime=mediaSource] unsigned short webkitSou
rceState; | 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
; |
116 #endif | 130 #endif |
117 | 131 |
118 #if defined(ENABLE_ENCRYPTED_MEDIA) && ENABLE_ENCRYPTED_MEDIA | 132 #if defined(ENABLE_ENCRYPTED_MEDIA) && ENABLE_ENCRYPTED_MEDIA |
119 [V8EnabledAtRuntime=encryptedMedia] void webkitGenerateKeyRequest(in [TreatN
ullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional
] Uint8Array initData) | 133 [V8EnabledAtRuntime=encryptedMedia] void webkitGenerateKeyRequest(in [TreatN
ullAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional
] Uint8Array initData) |
120 raises (DOMException); | 134 raises (DOMException); |
121 [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) | 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) |
122 raises (DOMException); | 136 raises (DOMException); |
123 [V8EnabledAtRuntime=encryptedMedia] void webkitCancelKeyRequest(in [TreatNul
lAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional=D
efaultIsNullString] DOMString sessionId) | 137 [V8EnabledAtRuntime=encryptedMedia] void webkitCancelKeyRequest(in [TreatNul
lAs=NullString, TreatUndefinedAs=NullString] DOMString keySystem, in [Optional=D
efaultIsNullString] DOMString sessionId) |
124 raises (DOMException); | 138 raises (DOMException); |
125 | 139 |
126 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyadded
; | 140 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyadded
; |
127 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyerror
; | 141 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeyerror
; |
128 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeymessa
ge; | 142 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitkeymessa
ge; |
129 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitneedkey; | 143 attribute [V8EnabledAtRuntime=encryptedMedia] EventListener onwebkitneedkey; |
130 #endif | 144 #endif |
131 | 145 |
132 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK | 146 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK |
133 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString ki
nd, in [Optional] DOMString label, in [Optional] DOMString language) | 147 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString ki
nd, in [Optional] DOMString label, in [Optional] DOMString language) |
134 raises (DOMException); | 148 raises (DOMException); |
135 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textT
racks; | 149 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textT
racks; |
136 #endif | 150 #endif |
137 | 151 |
138 attribute [Reflect, TreatNullAs=NullString] DOMString mediaGroup; | 152 attribute [Reflect, TreatNullAs=NullString] DOMString mediaGroup; |
139 attribute [CustomSetter] MediaController controller; | 153 attribute [CustomSetter] MediaController controller; |
140 }; | 154 }; |
141 } | 155 } |
OLD | NEW |