VideoJSOptions

io.laminext.videojs.api.VideoJSOptions
See theVideoJSOptions companion object

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Abstract fields

val aspectRatio: String
val autoplay: Boolean

If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user). NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect it's customers from unwillingly using a lot of their (often expensive) monthly data plans. A user touch/click is required to start the video in this case.

If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user). NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect it's customers from unwillingly using a lot of their (often expensive) monthly data plans. A user touch/click is required to start the video in this case.

Attributes

val bigPlayButton: UndefOr[Boolean]
val controlBar: UndefOr[ControlBarOptions | Boolean]
val controls: Boolean

The controls option sets whether or not the player has controls that the user can interact with. Without controls the only way to start the video playing is with the autoplay attribute or through the API.

The controls option sets whether or not the player has controls that the user can interact with. Without controls the only way to start the video playing is with the autoplay attribute or through the API.

Attributes

val defaultVolume: Double
val fluid: Boolean
val height: UndefOr[Int]

The height attribute sets the display height of the video.

The height attribute sets the display height of the video.

Attributes

val html5: Any
val inactivityTimeout: Double

Video.js indicates that the user is interacting with the player by way of the "vjs-user-active" and "vjs-user-inactive" classes and the "useractive" event.

Video.js indicates that the user is interacting with the player by way of the "vjs-user-active" and "vjs-user-inactive" classes and the "useractive" event.

The inactivityTimeout determines how many milliseconds of inactivity is required before declaring the user inactive. A value of 0 indicates that there is no inactivityTimeout and the user will never be considered inactive.

Attributes

val language: String
val liveui: Boolean
val loop: Boolean

The loop attribute causes the video to start over as soon as it ends. This could be used for a visual effect like clouds in the background.

The loop attribute causes the video to start over as soon as it ends. This could be used for a visual effect like clouds in the background.

Attributes

val muted: Boolean
val playbackRates: Array[Double]
val poster: UndefOr[String]

The poster attribute sets the image that displays before the video begins playing. This is often a frame of the video or a custom title screen. As soon as the user clicks play the image will go away.

The poster attribute sets the image that displays before the video begins playing. This is often a frame of the video or a custom title screen. As soon as the user clicks play the image will go away.

Attributes

val preload: String

The preload attribute informs the browser whether or not the video data should begin downloading as soon as the video tag is loaded. The options are auto, metadata, and none. 'auto': Start loading the video immediately (if the browser agrees). Some mobile devices like iPhones and iPads will not preload the video in order to protect their users' bandwidth. This is why the value is called 'auto' and not something more final like 'true'. 'metadata': Load only the meta data of the video, which includes information like the duration and dimensions of the video. 'none': Don't preload any of the video data. This will wait until the user clicks play to begin downloading.

The preload attribute informs the browser whether or not the video data should begin downloading as soon as the video tag is loaded. The options are auto, metadata, and none. 'auto': Start loading the video immediately (if the browser agrees). Some mobile devices like iPhones and iPads will not preload the video in order to protect their users' bandwidth. This is why the value is called 'auto' and not something more final like 'true'. 'metadata': Load only the meta data of the video, which includes information like the duration and dimensions of the video. 'none': Don't preload any of the video data. This will wait until the user clicks play to begin downloading.

Attributes

val sources: Array[VideoSource]
val techOrder: Array[String]
val width: UndefOr[Int]

The width attribute sets the display width of the video.

The width attribute sets the display width of the video.

Attributes

Inherited fields

val children: UndefOr[Array[Child]]

Attributes

Inherited from:
ComponentOptions