Skip to content

Commit 081534d

Browse files
committed
BlobEvent and MediaRecorder.
1 parent 9887ce0 commit 081534d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
/** The AnimationEvent interface represents events providing information related to animations. */
6+
@js.native
7+
trait BlobEvent extends Event {
8+
9+
def data: Blob = js.native
10+
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */
2+
package org.scalajs.dom
3+
4+
import scala.scalajs.js
5+
import scala.scalajs.js.annotation._
6+
7+
@js.native
8+
@JSGlobal
9+
class MediaRecorder(stream: MediaStream) extends EventTarget {
10+
var ondataavailable: js.Function1[Event, Any] = js.native
11+
var onerror: js.Function1[Event, Any] = js.native
12+
var onstop: js.Function1[Event, Any] = js.native
13+
14+
def resume(): Unit = js.native
15+
def start(): Unit = js.native
16+
def stop(): Unit = js.native
17+
18+
}

0 commit comments

Comments
 (0)