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

    Lets the application specify the ideal and/or ranges of acceptable values for any number of the available constrainable properties of the MediaStreamTrack.

  6. final def asInstanceOf[T0]: T0

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

    Permalink

    Returns a duplicate of the MediaStreamTrack.

    Returns a duplicate of the MediaStreamTrack.

    MDN

    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

    Returns the a list of constrainable properties available for the MediaStreamTrack.

    Returns the a list of constrainable properties available for the MediaStreamTrack.

    MDN

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

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

    Permalink

    Returns a MediaTrackConstraints object containing the currently set constraints for the track; the returned value matches the constraints last set using applyConstraints().

    Returns a MediaTrackConstraints object containing the currently set constraints for the track; the returned value matches the constraints last set using applyConstraints().

    MDN

  16. def getSettings(): Any

    Permalink

    Returns a MediaTrackSettings object containing the current values of each of the MediaStreamTrack's constrainable properties.

    Returns a MediaTrackSettings object containing the current values of each of the MediaStreamTrack's constrainable properties.

    MDN

  17. def hasOwnProperty(v: String): Boolean

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

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

  20. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  22. 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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. var onended: 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

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

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

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

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

  33. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  34. 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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. 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