object VideoJS extends Object with Component

Annotations
@native() @JSImport("video.js", JSImport.Default)
Linear Supertypes
Component, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VideoJS
  2. Component
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def $(selector: String, context: |[Element, String] = ???): Element
    Definition Classes
    Component
  4. def $$(selector: String, context: |[Element, String] = ???): NodeList[Node]
    Definition Classes
    Component
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. val VERSION: String
  7. def addChild(child: |[String, Component], options: Object = ???): Unit
    Definition Classes
    Component
  8. def addClass(element: Element, classToAdd: String): Unit
  9. def addClass(classToAdd: String): Unit
    Definition Classes
    Component
  10. def addLanguage(code: String, data: Object): Unit

    Adding languages so that they're available to all players.

    Adding languages so that they're available to all players.

    code

    The language code or dictionary property

    data

    The data values to be translated

    Example:
    1. VideoJS.addLanguage("es", js.Dynamic.literal(Hello = "Hola"))
  11. def appendContent(el: Element, content: Any): Unit
  12. def apply(element: |[String, Element], settings: UndefOr[VideoJSOptions] = js.undefined, ready: UndefOr[Function] = js.undefined): Player

    Doubles as the main function for users to create a player instance and also the main library object.

    Doubles as the main function for users to create a player instance and also the main library object. The videojs function can be used to initialize or retrieve a player.

    element

    Video element or video element ID

    settings

    Optional options object for config/settings

    ready

    Optional ready callback

  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def buildCSSClass(): String
    Definition Classes
    Component
  15. def children(): Array[Component]
    Definition Classes
    Component
  16. def clearInterval(intervalId: Int): Unit
    Definition Classes
    Component
  17. def clearTimeout(timeoutId: Int): Unit
    Definition Classes
    Component
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  19. def contentEl(): Element
    Definition Classes
    Component
  20. def controlText(el: Element): Element
    Definition Classes
    Component
  21. def createEl(tagName: String = ???, properties: Object = ???, attributes: Object = ???): Element
    Definition Classes
    Component
  22. def createTimeRange(start: |[Int, Array[TimeRanges]], end: Int): TimeRanges
  23. def dimensions(width: |[Int, String], height: |[Int, String]): Unit
    Definition Classes
    Component
  24. def dispose(): Unit
    Definition Classes
    Component
  25. def el(): Element
    Definition Classes
    Component
  26. def emptyEl(element: Element): Unit
  27. def enableTouchActivity(): Unit
    Definition Classes
    Component
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def extend(cls: Object, fn: Object): Object
  31. def formatTime(seconds: Int, guide: Int): String
  32. def getAttributes(tag: Element): Object
  33. def getChild(name: String): Component
    Definition Classes
    Component
  34. def getChildById(id: String): Component
    Definition Classes
    Component
  35. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  36. def getComponent(name: String): Object

    Get a component class object by name

  37. def getPlayers(): Object

    Get an object with the currently created players, keyed by player ID

  38. def handleBlur(): Unit
    Definition Classes
    Component
  39. def handleClick(): Unit
    Definition Classes
    Component
  40. def handleFocus(): Unit
    Definition Classes
    Component
  41. def handleKeyPress(): Unit
    Definition Classes
    Component
  42. def hasClass(element: Element, classToCheck: String): Boolean
  43. def hasClass(classToCheck: String): Boolean
    Definition Classes
    Component
  44. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  45. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  46. def height(num: |[Int, String] = ???, skipListeners: Boolean = ???): Int
    Definition Classes
    Component
  47. def hide(): Unit
    Definition Classes
    Component
  48. def id(): String
    Definition Classes
    Component
  49. def initChildren(): Unit
    Definition Classes
    Component
  50. def insertContent(el: Element, content: Any): Unit
  51. def isCrossOrigin(url: String): Boolean

    Returns whether the url passed is a cross domain request or not.

    Returns whether the url passed is a cross domain request or not.

    url

    The url to check

  52. def isEl(value: Any): Boolean
  53. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  54. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  55. def isTextNode(value: Any): Boolean
  56. def mergeOptions(defaults: Object, overrides: Object, etc: Object): Object
  57. def name(): String
    Definition Classes
    Component
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  60. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  61. def off(component: |[Element, Object], event: |[String, Array[String]], handler: Function): VideoJS.this.type
  62. def off(event: String, handler: Function): Unit
    Definition Classes
    Component
  63. def off(component: Component, event: String, handler: Function): Unit
    Definition Classes
    Component
  64. def on(component: |[Element, Object], event: |[String, Array[String]], handler: Function): VideoJS.this.type
  65. def on(event: String, handler: Function): Unit
    Definition Classes
    Component
  66. def on(component: Component, event: String, handler: Function): Unit
    Definition Classes
    Component
  67. def one(component: |[Element, Object], event: |[String, Array[String]], handler: Function): VideoJS.this.type
  68. def one(event: String, handler: Function): Unit
    Definition Classes
    Component
  69. def one(component: Component, event: String, handler: Function): Unit
    Definition Classes
    Component
  70. def options(obj: Object): Object
    Definition Classes
    Component
  71. def parseUrl(url: String): Object
  72. def player(): Player
    Definition Classes
    Component
  73. def plugin(name: String, fn: Function): Unit

    Create a Video.js player plugin.

    Create a Video.js player plugin. Plugins are only initialized when options for the plugin are included in the player options, or the plugin function on the player instance is called. See the plugin guide in the docs for a more detailed example

    name

    The plugin name

    fn

    The plugin function that will be called with options

  74. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  75. def ready(fn: Function, sync: Boolean): VideoJS.this.type
    Definition Classes
    Component
  76. def registerComponent(name: String, comp: Object): Object

    Register a component so it can referred to by name.

    Register a component so it can referred to by name. Used when adding to other components, either through addChild component.addChild('myComponent') or through default children options { children: ['myComponent'] }.

    name

    Class name of the component

    comp

    Component class

    returns

    The newly registered component

    Example:
    1. // Get a component to subclass var VjsButton = videojs.getComponent('Button'); // Subclass the component (see 'extend' doc for more info) var
       MySpecialButton = videojs.extend(VjsButton, {}); // Register the new component VjsButton.registerComponent('MySpecialButton', MySpecialButton); //
       (optionally) add the new component as a default player child myPlayer.addChild('MySpecialButton');
  77. def registerTech(name: String, tech: Object): Object

    Register a Tech so it can referred to by name.

    Register a Tech so it can referred to by name. This is used in the tech order for the player.

    name

    Class name of the tech

    tech

    Tech class

    returns

    The newly registered Tech

    Example:
    1. // get the Html5 Tech var Html5 = videojs.getTech('Html5'); var MyTech = videojs.extend(Html5, {}); // Register the new Tech
       VjsButton.registerTech('Tech', MyTech); var player = videojs('myplayer', { techOrder: ['myTech', 'html5'] });
  78. def removeChild(component: Component): Unit
    Definition Classes
    Component
  79. def removeClass(element: Element, classToRemove: String): Unit
  80. def removeClass(classToRemove: String): Unit
    Definition Classes
    Component
  81. def setAttributes(el: Element, attributes: Object = ???): Unit
  82. def setInterval(fn: Function, interval: Int): Unit
    Definition Classes
    Component
  83. def setTimeout(fn: Function, timeout: Int): Unit
    Definition Classes
    Component
  84. def show(): Unit
    Definition Classes
    Component
  85. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  86. def toLocaleString(): String
    Definition Classes
    Object
  87. def toString(): String
    Definition Classes
    AnyRef → Any
  88. def toggleClass(classToToggle: String, predicate: |[Function, Boolean] = ???): Unit
    Definition Classes
    Component
  89. def toggleElClass(element: Element, classToToggle: String, predicate: |[Boolean, Function] = ???): Unit
  90. def trigger(event: |[Object, String], hash: Object = ???): Unit
    Definition Classes
    Component
  91. def triggerEl(element: Object, event: |[String, Object], hash: Object = ???): Unit
    Annotations
    @JSName("trigger")
  92. def triggerReady(): Unit
    Definition Classes
    Component
  93. def valueOf(): Any
    Definition Classes
    Object
  94. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  95. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  96. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  97. def width(num: |[Int, String], skipListeners: Boolean): Int
    Definition Classes
    Component

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Component

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped