Trait/Object

org.scalajs.dom.experimental.mediastream

MediaStreamTrack

Related Docs: object MediaStreamTrack | package mediastream

Permalink

trait MediaStreamTrack extends raw.EventTarget

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

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

    Permalink

    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
  5. def applyConstraints(constraints: MediaTrackConstraints): Promise[Unit]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): MediaStreamTrack

    Permalink
    Definition Classes
    MediaStreamTrack → AnyRef
  8. def dispatchEvent(evt: raw.Event): Boolean

    Permalink

    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
  9. var enabled: Boolean

    Permalink

    Is a Boolean value with a value of true if the track is enabled, that is allowed to render the media source stream; or false if it is disabled, that is not rendering the media source stream but silence and blackness.

    Is a Boolean value with a value of true if the track is enabled, that is allowed to render the media source stream; or false if it is disabled, that is not rendering the media source stream but silence and blackness. If the track has been disconnected, this value can be changed but has no more effect.

    MDN

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def getCapabilities(): Any

    Permalink
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getConstraints(): MediaTrackConstraints

    Permalink
  16. def getSettings(): Any

    Permalink
  17. def getSourceInfos(): Array[SourceInfo]

    Permalink

    getSourceInfos, static Returns authorized information for all available sources.

    getSourceInfos, static Returns authorized information for all available sources. No parameters.

  18. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. val id: String

    Permalink

    Returns a DOMString containing a unique identifier (GUID) for the track; it is generated by the browser.

    Returns a DOMString containing a unique identifier (GUID) for the track; it is generated by the browser.

    MDN

  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  23. val kind: String

    Permalink

    Returns a DOMString set to "audio" if the track is an audio track and to "video", if it is a video track.

    Returns a DOMString set to "audio" if the track is an audio track and to "video", if it is a video track. It doesn't change if the track is deassociated from its source.

    MDN

  24. val label: String

    Permalink

    Returns a DOMString containing a user agent-assigned label that identifies the track source, as in "internal microphone".

    Returns a DOMString containing a user agent-assigned label that identifies the track source, as in "internal microphone". The string may be left empty and is empty as long as no source has been connected. When the track is deassociated from its source, the label is not changed.

    MDN

  25. val muted: Boolean

    Permalink

    Returns a Boolean value with a value of true if the track is muted, false otherwise.

    Returns a Boolean value with a value of true if the track is muted, false otherwise.

    MDN

  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. var oneended: Function1[raw.Event, Any]

    Permalink

    Is a EventHandler containing the action to perform when an ended event is fired on the object, that is when a MediaStreamTrack object is removed from it.

    Is a EventHandler containing the action to perform when an ended event is fired on the object, that is when a MediaStreamTrack object is removed from it.

    MDN

  30. var onmute: Function1[raw.Event, Any]

    Permalink

    Is a EventHandler containing the action to perform when an mute event is fired on the object, that is when the streaming is terminating.

    Is a EventHandler containing the action to perform when an mute event is fired on the object, that is when the streaming is terminating.

    MDN

  31. var onoverconstrained: Function1[raw.Event, Any]

    Permalink

    Is a EventHandler containing the action to perform when an overconstrained event is fired on the object, that is when a MediaStreamTrack object is removed from it.

    Is a EventHandler containing the action to perform when an overconstrained event is fired on the object, that is when a MediaStreamTrack object is removed from it.

    MDN

  32. var onstarted: Function1[raw.Event, Any]

    Permalink

    Is a EventHandler containing the action to perform when an started event is fired on the object, that is when a new MediaStreamTrack object is added.

    Is a EventHandler containing the action to perform when an started event is fired on the object, that is when a new MediaStreamTrack object is added.

    MDN

  33. var onunmute: Function1[raw.Event, Any]

    Permalink

    Is a EventHandler containing the action to perform when an unmute event is fired on the object, that is when a MediaStreamTrack object is removed from it.

    Is a EventHandler containing the action to perform when an unmute event is fired on the object, that is when a MediaStreamTrack object is removed from it.

    MDN

  34. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  35. val readonly: Boolean

    Permalink

    Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings can't be modified),false otherwise.

    Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings can't be modified),false otherwise.

    MDN

  36. val readyState: MediaStreamTrackState

    Permalink

    Returns an enumerated value giving the status of the track.It takes one of the following values:

    Returns an enumerated value giving the status of the track.It takes one of the following values:

    "live" which indicates that an input is connected and does its best-effort in providing real-time data. In that case, the output of data can be switched on or off using the MediaStreamTrack.enabled attribute.

    "ended" which indicates that the input is not giving any more data and will never provide new data.

    MDN

  37. val remote: Boolean

    Permalink

    Returns a boolean value with a value of true if the track is sourced by a RTCPeerConnection, false otherwise.

    Returns a boolean value with a value of true if the track is sourced by a RTCPeerConnection, false otherwise.

    MDN

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

    Permalink

    Removes the event listener previously registered with EventTarget.addEventListener.

    Removes the event listener previously registered with EventTarget.addEventListener.

    MDN

    Definition Classes
    EventTarget
  39. def states(): |[AllVideoCapabilities, AllAudioCapabilities]

    Permalink
  40. def stop(): Unit

    Permalink

    Stops playing the source associated to the track, both the source and the track are deassociated.

    Stops playing the source associated to the track, both the source and the track are deassociated. The track state is set to ended.

    MDN

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

    Permalink
    Definition Classes
    AnyRef
  42. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from raw.EventTarget

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped