Trait

outwatch.dom

MediaAttributes

Related Doc: package dom

Permalink

trait MediaAttributes extends SharedEventAttributes

Attributes applicable to media elements like <audio>, <video> etc.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MediaAttributes
  2. SharedEventAttributes
  3. AnyRef
  4. 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val autoplay: BoolAttributeBuilder

    Permalink

    A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.

    A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.

    MDN

  6. lazy val buffered: BoolAttributeBuilder

    Permalink

    An attribute you can read to determine the time ranges of the buffered media.

    An attribute you can read to determine the time ranges of the buffered media. This attribute contains a TimeRanges object.

    MDN

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. lazy val controls: BoolAttributeBuilder

    Permalink

    If this attribute is present, the browser will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback.

    If this attribute is present, the browser will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback.

    MDN

  9. lazy val crossorigin: AttributeBuilder[String]

    Permalink

    This enumerated attribute indicates whether to use CORS to fetch the related image.

    This enumerated attribute indicates whether to use CORS to fetch the related image. CORS-enabled resources can be reused in the <canvas> element without being tainted. The allowed values are:

    anonymous: Sends a cross-origin request without a credential. In other words, it sends the Origin: HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin: HTTP header), the image will be tainted, and its usage restricted.

    use-credentials: Sends a cross-origin request with a credential. In other words, it sends the Origin: HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through Access-Control-Allow-Credentials: HTTP header), the image will be tainted and its usage restricted.

    When not present, the resource is fetched without a CORS request (i.e. without sending the Origin: HTTP header), preventing its non-tainted used in <canvas> elements. If invalid, it is handled as if the enumerated keyword anonymous was used. See CORS settings attributes for additional information.

    MDN

  10. lazy val default: BoolAttributeBuilder

    Permalink

    This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate.

    This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one track element per media element.

    MDN

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. lazy val error: EventEmitterBuilder[Nothing]

    Permalink

    Script to be run when an error occurs when the file is being loaded.

    Script to be run when an error occurs when the file is being loaded.

    Definition Classes
    SharedEventAttributes
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. lazy val kind: AttributeBuilder[Any]

    Permalink

    How the text track is meant to be used.

    How the text track is meant to be used. If omitted the default kind is subtitles. If the attribute is not present, it will use the subtitles. If the attribute contains an invalid value, it will use metadata. (Versions of Chrome earlier than 52 treated an invalid value as subtitles.)

    The following keywords are allowed:

    subtitles: Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film. Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.

    captions: Closed captions provide a transcription and possibly a translation of audio. It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character). Suitable for users who are deaf or when the sound is muted.

    descriptions: Textual description of the video content. Suitable for users who are blind or where the video cannot be seen.

    chapters: Chapter titles are intended to be used when the user is navigating the media resource.

    metadata: Tracks used by scripts. Not visible to the user.

  19. lazy val label: AttributeBuilder[Any]

    Permalink

    A user-readable title of the text track which is used by the browser when listing available text tracks.

    A user-readable title of the text track which is used by the browser when listing available text tracks.

    MDN

  20. lazy val loop: BoolAttributeBuilder

    Permalink

    A Boolean attribute; if specified, we will, upon reaching the end of the video, automatically seek back to the start.

    A Boolean attribute; if specified, we will, upon reaching the end of the video, automatically seek back to the start.

    MDN

  21. lazy val muted: BoolAttributeBuilder

    Permalink

    A Boolean attribute which indicates the default setting of the audio contained in the video.

    A Boolean attribute which indicates the default setting of the audio contained in the video. If set, the audio will be initially silenced. Its default value is false, meaning that the audio will be played when the video is played.

    MDN

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

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

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

    Permalink
    Definition Classes
    AnyRef
  25. lazy val poster: AttributeBuilder[Any]

    Permalink

    A URL indicating a poster frame to show until the user plays or seeks.

    A URL indicating a poster frame to show until the user plays or seeks. If this attribute isn't specified, nothing is displayed until the first frame is available; then the first frame is shown as the poster frame.

    MDN

  26. lazy val preload: AttributeBuilder[Any]

    Permalink

    This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience.

    This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:

    none: indicates that the video should not be preloaded.

    metadata: indicates that only video metadata (e.g. length) is fetched.

    auto: indicates that the whole video file could be downloaded, even if the user is not expected to use it.

    the empty string: synonym of the auto value.

    If not set, its default value is browser-defined (i.e. each browser may have its default value). The spec advises it to be set to metadata.

    MDN

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. lazy val volume: AttributeBuilder[Float]

    Permalink

    The playback volume, in the range 0.0 (silent) to 1.0 (loudest).

  30. final def wait(): Unit

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

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

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

Inherited from SharedEventAttributes

Inherited from AnyRef

Inherited from Any

Ungrouped