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

Side by Side Diff: Source/modules/mediarecorder/MediaRecorder.idl

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: peter@ comments and nits Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderAPI
6
7 enum RecordingStateEnum { "inactive", "recording", "paused"};
Peter Beverloo 2015/09/02 16:39:37 micro nit: consistent whitespace (add space before
mcasas 2015/09/02 21:01:47 Done.
8
9 [
10 GarbageCollected,
11 ActiveDOMObject,
12 Constructor (MediaStream stream, [TreatUndefinedAs=Missing] optional DOMStri ng mimeType),
Peter Beverloo 2015/09/02 16:39:37 micro nit: no space before (
mcasas 2015/09/02 21:01:47 Done.
13 ConstructorCallWith=ExecutionContext,
14 RaisesException=Constructor,
15 RuntimeEnabled=MediaRecorder
16 ] interface MediaRecorder : EventTarget {
17 readonly attribute MediaStream stream;
18 readonly attribute DOMString mimeType;
19 readonly attribute RecordingStateEnum state;
20 attribute boolean ignoreMutedMedia;
21
22 attribute EventHandler onstart;
23 attribute EventHandler onstop;
24 attribute EventHandler ondataavailable;
25 attribute EventHandler onpause;
26 attribute EventHandler onresume;
27 attribute EventHandler onerror;
28
29 [RaisesException] void start(optional long timeslice);
30 [RaisesException] void stop();
31 [RaisesException] void pause();
32 [RaisesException] void resume();
33 [RaisesException] void requestData();
34
35 static DOMString canRecordMimeType(DOMString mimeType);
36 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698