class MediaStream extends raw.EventTarget
The MediaStream
https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/
MDN
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- MediaStream
- EventTarget
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MediaStream()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
active: Boolean
A Boolean value that returns true if the MediaStream is active, or false otherwise.
A Boolean value that returns true if the MediaStream is active, or false otherwise.
MDN
-
def
addEventListener[T <: raw.Event](type: String, listener: Function1[T, _], options: EventListenerOptions): Unit
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events (such as XMLHttpRequest).
This implementation accepts a settings object of type EventListenerOptions.
MDN
- Definition Classes
- EventTarget
-
def
addEventListener[T <: raw.Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events (such as XMLHttpRequest).
MDN
- Definition Classes
- EventTarget
-
def
addTrack(track: MediaStreamTrack): Unit
Stores a copy of the MediaStreamTrack given as argument.
Stores a copy of the MediaStreamTrack given as argument. If the track has already been added to the MediaStream object, nothing happens; if the track is in the finished state - that is, has already reached its end - the exception INVALID_STATE_RAISE is raised.
MDN
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): MediaStream
Clones the given MediaStream and all its tracks.
Clones the given MediaStream and all its tracks. When the clone() method is invoked, the user agent must run the following steps: 1) Let streamClone be a newly constructed MediaStream object. 2) Initialize streamClone's id attribute to a newly generated value. 3) Let trackSetClone be a list that contains the result of running MediaStreamTrack.clone() on all the tracks in this stream.
Let trackSetClone be streamClone's track set.
MDN
- Definition Classes
- MediaStream → AnyRef
-
def
dispatchEvent(evt: raw.Event): Boolean
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) apply to events dispatched manually with dispatchEvent().
MDN
- Definition Classes
- EventTarget
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAudioTracks(): Array[MediaStreamTrack]
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to "audio".
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to "audio". The order is not defined, and may not only vary from one browser to another, but also from one call to another..
MDN
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getTrackById(trackId: String): MediaStreamTrack
Returns the track whose ID corresponds to the one given in parameters, trackid.
Returns the track whose ID corresponds to the one given in parameters, trackid. If no parameter is given, or if no track with that ID does exist, it returns null. If several tracks have the same ID, it returns the first one.
MDN
-
def
getTracks(): Array[MediaStreamTrack]
Returns a list of all MediaStreamTrack objects stored in the MediaStream object, regardless of the value of the kind attribute.
Returns a list of all MediaStreamTrack objects stored in the MediaStream object, regardless of the value of the kind attribute. The order is not defined, and may not only vary from one browser to another, but also from one call to another.
MDN
-
def
getVideoTracks(): Array[MediaStreamTrack]
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to "video".
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to "video". The order is not defined, and may not only vary from one browser to another, but also from one call to another.
MDN
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
id: String
Is a DOMString containing 36 characters denoting a universally unique identifier (UUID) for the object.
Is a DOMString containing 36 characters denoting a universally unique identifier (UUID) for the object.
MDN
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
var
onaddtrack: Function1[raw.Event, Any]
Is an EventHandler containing the action to perform when an addtrack event is fired when a new MediaStreamTrack object is added.
Is an EventHandler containing the action to perform when an addtrack event is fired when a new MediaStreamTrack object is added.
MDN
-
var
onremovetrack: Function1[raw.Event, Any]
Is an EventHandler containing the action to perform when an removetrack event is fired when a MediaStreamTrack object is removed from it.
Is an EventHandler containing the action to perform when an removetrack event is fired when a MediaStreamTrack object is removed from it.
MDN
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
removeEventListener[T <: raw.Event](type: String, listener: Function1[T, _], options: EventListenerOptions): Unit
Removes the event listener previously registered with EventTarget.addEventListener.
Removes the event listener previously registered with EventTarget.addEventListener.
This implementation accepts a settings object of type EventListenerOptions.
MDN
- Definition Classes
- EventTarget
-
def
removeEventListener[T <: raw.Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit
Removes the event listener previously registered with EventTarget.addEventListener.
Removes the event listener previously registered with EventTarget.addEventListener.
MDN
- Definition Classes
- EventTarget
-
def
removeTrack(track: MediaStreamTrack): Unit
Removes the MediaStreamTrack given as argument.
Removes the MediaStreamTrack given as argument. If the track is not part of the MediaStream object, nothing happens; if the track is in the finished state - that is, it has already reached its end - the exception INVALID_STATE_RAISE is raised.
MDN
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()