| 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 // 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 // Appends media to to the source. | 102 // Appends media to to the source. |
| 107 [V8EnabledAtRuntime=mediaSource] void webkitSourceAppend(in Uint8Array data)
raises (DOMException); | 103 [V8EnabledAtRuntime=mediaSource] void webkitSourceAppend(in Uint8Array data)
raises (DOMException); |
| 108 | 104 |
| 109 // Signals the end of stream. | 105 // Signals the end of stream. |
| 110 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NO_ERROR = 0; // E
nd of stream reached w/o error. | 106 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NO_ERROR = 0; // E
nd of stream reached w/o error. |
| 111 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NETWORK_ERR = 1; /
/ A network error triggered end of stream. | 107 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_NETWORK_ERR = 1; /
/ A network error triggered end of stream. |
| 112 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_DECODE_ERR = 2; //
A decode error triggered end of stream. | 108 [V8EnabledAtRuntime=mediaSource] const unsigned short EOS_DECODE_ERR = 2; //
A decode error triggered end of stream. |
| 113 [V8EnabledAtRuntime=mediaSource] void webkitSourceEndOfStream(in unsigned sh
ort status) raises (DOMException); | 109 [V8EnabledAtRuntime=mediaSource] void webkitSourceEndOfStream(in unsigned sh
ort status) raises (DOMException); |
| 114 | 110 |
| 115 // Indicates the current state of the media source. | 111 // Indicates the current state of the media source. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 136 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK | 132 #if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK |
| 137 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString ki
nd, in [Optional] DOMString label, in [Optional] DOMString language) | 133 [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString ki
nd, in [Optional] DOMString label, in [Optional] DOMString language) |
| 138 raises (DOMException); | 134 raises (DOMException); |
| 139 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textT
racks; | 135 readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textT
racks; |
| 140 #endif | 136 #endif |
| 141 | 137 |
| 142 attribute [Reflect, TreatNullAs=NullString] DOMString mediaGroup; | 138 attribute [Reflect, TreatNullAs=NullString] DOMString mediaGroup; |
| 143 attribute [CustomSetter] MediaController controller; | 139 attribute [CustomSetter] MediaController controller; |
| 144 }; | 140 }; |
| 145 } | 141 } |
| OLD | NEW |