org.danielnixon.saferdom.experimental.mediastream

MediaStream

class MediaStream extends Object with raw.EventTarget

The MediaStream

https://www.w3.org/TR/2015/WD-mediacapture-streams-20150212/

MDN

Annotations
@RawJSType() @native()
Linear Supertypes
raw.EventTarget, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MediaStream
  2. EventTarget
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MediaStream()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addEventListener[T <: raw.Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit

    The EventTarget.

    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
  7. 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

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. 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
  10. 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
  11. val ended: Boolean

    Is a Boolean value set to true if the ended event has been fired on the object, meaning that the stream has been completely read, or false if the end of the stream has not been reached.

    Is a Boolean value set to true if the ended event has been fired on the object, meaning that the stream has been completely read, or false if the end of the stream has not been reached.

    MDN

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. 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

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. 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

  18. 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

  19. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. 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

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. 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

  28. var onended: Function1[raw.Event, Any]

    Is an EventHandler containing the action to perform when a end event is fired.

    Is an EventHandler containing the action to perform when a end event is fired.

    MDN

  29. 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

  30. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  31. def removeEventListener[T <: raw.Event](type: String, listener: Function1[T, _], useCapture: Boolean = js.native): Unit

    Removes the event listener previously registered with EventTarget.

    Removes the event listener previously registered with EventTarget.addEventListener.

    MDN

    Definition Classes
    EventTarget
  32. 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

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Definition Classes
    Object
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def valueOf(): Any

    Definition Classes
    Object
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from raw.EventTarget

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped