OLD | NEW |
---|---|
(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"}; | |
8 | |
9 [ | |
10 GarbageCollected, | |
11 ActiveDOMObject, | |
12 Constructor (MediaStream stream,[TreatUndefinedAs=Missing] optional DOMStrin g mimeType), | |
esprehn
2015/08/21 08:46:13
space after ,
mcasas
2015/08/21 18:50:05
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 | |
21 attribute EventHandler onstart; | |
22 attribute EventHandler onstop; | |
23 attribute EventHandler ondataavailable; | |
24 attribute EventHandler onpause; | |
25 attribute EventHandler onresume; | |
26 attribute EventHandler onerror; | |
27 attribute boolean ignoreMutedMedia; | |
esprehn
2015/08/21 08:46:13
new line between this property and the event handl
mcasas
2015/08/21 18:50:05
Done.
| |
28 | |
29 [RaisesException] void start (optional long timeslice); | |
esprehn
2015/08/21 08:46:13
remove space between name and argument list
mcasas
2015/08/21 18:50:05
Done.
| |
30 [RaisesException] void stop(); | |
31 [RaisesException] void pause(); | |
32 [RaisesException] void resume(); | |
33 [RaisesException] void requestData(); | |
34 static DOMString canRecordMimeType (DOMString mimeType); | |
esprehn
2015/08/21 08:46:13
remove space between name and argument list
mcasas
2015/08/21 18:50:05
Done.
| |
35 }; | |
OLD | NEW |