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

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

Issue 2205943002: Remove MediaRecorder runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderAPI 5 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#MediaRecorderAPI
6 6
7 enum RecordingState { "inactive", "recording", "paused" }; 7 enum RecordingState { "inactive", "recording", "paused" };
8 8
9 [ 9 [
10 ActiveScriptWrappable, 10 ActiveScriptWrappable,
11 ConstructorCallWith=ExecutionContext, 11 ConstructorCallWith=ExecutionContext,
12 Constructor(MediaStream stream, optional MediaRecorderOptions options), 12 Constructor(MediaStream stream, optional MediaRecorderOptions options),
13 DependentLifetime, 13 DependentLifetime,
14 RaisesException=Constructor, 14 RaisesException=Constructor,
15 RuntimeEnabled=MediaRecorder,
16 ] interface MediaRecorder : EventTarget { 15 ] interface MediaRecorder : EventTarget {
17 readonly attribute MediaStream stream; 16 readonly attribute MediaStream stream;
18 readonly attribute DOMString mimeType; 17 readonly attribute DOMString mimeType;
19 readonly attribute RecordingState state; 18 readonly attribute RecordingState state;
20 19
21 attribute EventHandler onstart; 20 attribute EventHandler onstart;
22 attribute EventHandler onstop; 21 attribute EventHandler onstop;
23 attribute EventHandler ondataavailable; 22 attribute EventHandler ondataavailable;
24 attribute EventHandler onpause; 23 attribute EventHandler onpause;
25 attribute EventHandler onresume; 24 attribute EventHandler onresume;
26 attribute EventHandler onerror; 25 attribute EventHandler onerror;
27 attribute boolean ignoreMutedMedia; 26 attribute boolean ignoreMutedMedia;
28 readonly attribute unsigned long videoBitsPerSecond; 27 readonly attribute unsigned long videoBitsPerSecond;
29 readonly attribute unsigned long audioBitsPerSecond; 28 readonly attribute unsigned long audioBitsPerSecond;
30 29
31 [RaisesException] void start(optional long timeslice); 30 [RaisesException] void start(optional long timeslice);
32 [RaisesException] void stop(); 31 [RaisesException] void stop();
33 [RaisesException] void pause(); 32 [RaisesException] void pause();
34 [RaisesException] void resume(); 33 [RaisesException] void resume();
35 [RaisesException] void requestData(); 34 [RaisesException] void requestData();
36 35
37 static boolean isTypeSupported(DOMString type); 36 static boolean isTypeSupported(DOMString type);
38 }; 37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698