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

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

Issue 2610163006: MediaRecorder: support |timecode| and remove |m_ignoreMutedMedia|. (Closed)
Patch Set: Rebase video_capture_device_client.cc Created 3 years, 11 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 ] interface MediaRecorder : EventTarget { 15 ] interface MediaRecorder : EventTarget {
16 readonly attribute MediaStream stream; 16 readonly attribute MediaStream stream;
17 readonly attribute DOMString mimeType; 17 readonly attribute DOMString mimeType;
18 readonly attribute RecordingState state; 18 readonly attribute RecordingState state;
19 19
20 attribute EventHandler onstart; 20 attribute EventHandler onstart;
21 attribute EventHandler onstop; 21 attribute EventHandler onstop;
22 attribute EventHandler ondataavailable; 22 attribute EventHandler ondataavailable;
23 attribute EventHandler onpause; 23 attribute EventHandler onpause;
24 attribute EventHandler onresume; 24 attribute EventHandler onresume;
25 attribute EventHandler onerror; 25 attribute EventHandler onerror;
26 attribute boolean ignoreMutedMedia;
27 readonly attribute unsigned long videoBitsPerSecond; 26 readonly attribute unsigned long videoBitsPerSecond;
28 readonly attribute unsigned long audioBitsPerSecond; 27 readonly attribute unsigned long audioBitsPerSecond;
29 28
30 [RaisesException, Measure] void start(optional long timeslice); 29 [RaisesException, Measure] void start(optional long timeslice);
31 [RaisesException] void stop(); 30 [RaisesException] void stop();
32 [RaisesException] void pause(); 31 [RaisesException] void pause();
33 [RaisesException] void resume(); 32 [RaisesException] void resume();
34 [RaisesException] void requestData(); 33 [RaisesException] void requestData();
35 34
36 static boolean isTypeSupported(DOMString type); 35 static boolean isTypeSupported(DOMString type);
37 }; 36 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698