Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Unified Diff: Source/modules/mediasource/SourceBuffer.idl

Issue 16625011: Add minimal implementation of unprefixed MediaSource API that has feature parity with prefixed API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix global-constructors-listing-expected.txt Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.cpp ('k') | Source/modules/mediasource/SourceBufferList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/SourceBuffer.idl
diff --git a/Source/modules/webmidi/MIDIPort.idl b/Source/modules/mediasource/SourceBuffer.idl
similarity index 77%
copy from Source/modules/webmidi/MIDIPort.idl
copy to Source/modules/mediasource/SourceBuffer.idl
index e7e2aa9f87a204969318580f984b683adf0a657a..d04be7109d236ededb8eb49eebb87ece3aff57c7 100644
--- a/Source/modules/webmidi/MIDIPort.idl
+++ b/Source/modules/mediasource/SourceBuffer.idl
@@ -27,24 +27,28 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-enum MIDIPortType {
- "input",
- "output"
-};
-
+
[
NoInterfaceObject,
ActiveDOMObject,
- EventTarget
-] interface MIDIPort {
- readonly attribute DOMString id;
- readonly attribute DOMString manufacturer;
- readonly attribute DOMString name;
- readonly attribute MIDIPortType type;
- readonly attribute DOMString version;
+ EventTarget,
+ EnabledAtRuntime=mediaSource
+] interface SourceBuffer {
+
+ readonly attribute boolean updating;
+
+ // Returns the time ranges buffered.
+ [GetterRaisesException] readonly attribute TimeRanges buffered;
- attribute EventListener ondisconnect;
+ // Applies an offset to media segment timestamps.
+ [SetterRaisesException] attribute double timestampOffset;
+
+ // Append segment data.
+ [RaisesException] void appendBuffer(ArrayBuffer data);
+ [RaisesException] void appendBuffer(ArrayBufferView data);
+
+ // Abort the current segment append sequence.
+ [RaisesException] void abort();
// EventTarget interface
void addEventListener(DOMString type,
@@ -55,3 +59,4 @@ enum MIDIPortType {
optional boolean useCapture);
[RaisesException] boolean dispatchEvent(Event event);
};
+
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.cpp ('k') | Source/modules/mediasource/SourceBufferList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698