Object

com.karasiq.videojs

VideoJS

Related Doc: package videojs

Permalink

object VideoJS extends Object with Component

Annotations
@native() @JSImport( "video.js" , JSImport.Default , "videojs" )
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. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def $(selector: String, context: |[Element, String] = ???): Element

    Permalink
    Definition Classes
    Component
  4. def $$(selector: String, context: |[Element, String] = ???): NodeList

    Permalink
    Definition Classes
    Component
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addChild(child: |[String, Component], options: Object = ???): Unit

    Permalink
    Definition Classes
    Component
  7. def addClass(element: Element, classToAdd: String): Unit

    Permalink
  8. def addClass(classToAdd: String): Unit

    Permalink
    Definition Classes
    Component
  9. def addLanguage(code: String, data: Object): Unit

    Permalink

    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"))
  10. def appendContent(el: Element, content: Any): Unit

    Permalink
  11. def apply(element: |[String, Element], settings: Object = ???, ready: Function = ???): Object

    Permalink

    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

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def buildCSSClass(): String

    Permalink
    Definition Classes
    Component
  14. def children(): Array[Component]

    Permalink
    Definition Classes
    Component
  15. def clearInterval(intervalId: Int): Unit

    Permalink
    Definition Classes
    Component
  16. def clearTimeout(timeoutId: Int): Unit

    Permalink
    Definition Classes
    Component
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  18. def contentEl(): Element

    Permalink
    Definition Classes
    Component
  19. def controlText(el: Element): Element

    Permalink
    Definition Classes
    Component
  20. def createEl(tagName: String = ???, properties: Object = ???, attributes: Object = ???): Element

    Permalink
    Definition Classes
    Component
  21. def createTimeRange(start: |[Int, Array[TimeRanges]], end: Int): TimeRanges

    Permalink
  22. def dimensions(width: |[Int, String], height: |[Int, String]): Unit

    Permalink
    Definition Classes
    Component
  23. def dispose(): Unit

    Permalink
    Definition Classes
    Component
  24. def el(): Element

    Permalink
    Definition Classes
    Component
  25. def emptyEl(element: Element): Unit

    Permalink
  26. def enableTouchActivity(): Unit

    Permalink
    Definition Classes
    Component
  27. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def extend(cls: Object, fn: Object): Object

    Permalink
  30. def formatTime(seconds: Int, guide: Int): String

    Permalink
  31. def getAttributes(tag: Element): Object

    Permalink
  32. def getChild(name: String): Component

    Permalink
    Definition Classes
    Component
  33. def getChildById(id: String): Component

    Permalink
    Definition Classes
    Component
  34. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  35. def getComponent(name: String): Object

    Permalink

    Get a component class object by name

  36. def getPlayers(): Object

    Permalink

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

  37. def handleBlur(): Unit

    Permalink
    Definition Classes
    Component
  38. def handleClick(): Unit

    Permalink
    Definition Classes
    Component
  39. def handleFocus(): Unit

    Permalink
    Definition Classes
    Component
  40. def handleKeyPress(): Unit

    Permalink
    Definition Classes
    Component
  41. def hasClass(element: Element, classToCheck: String): Boolean

    Permalink
  42. def hasClass(classToCheck: String): Boolean

    Permalink
    Definition Classes
    Component
  43. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  45. def height(num: |[Int, String] = ???, skipListeners: Boolean = ???): Int

    Permalink
    Definition Classes
    Component
  46. def hide(): Unit

    Permalink
    Definition Classes
    Component
  47. def id(): String

    Permalink
    Definition Classes
    Component
  48. def initChildren(): Unit

    Permalink
    Definition Classes
    Component
  49. def insertContent(el: Element, content: Any): Unit

    Permalink
  50. def isCrossOrigin(url: String): Boolean

    Permalink

    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

  51. def isEl(value: Any): Boolean

    Permalink
  52. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  54. def isTextNode(value: Any): Boolean

    Permalink
  55. def mergeOptions(defaults: Object, overrides: Object, etc: Object): Object

    Permalink
  56. def name(): String

    Permalink
    Definition Classes
    Component
  57. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  59. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  60. def off(component: |[Element, Object], event: |[String, Array[String]], handler: Function): VideoJS.this.type

    Permalink
  61. def off(event: String, handler: Function): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  62. def off(component: Component, event: String, handler: Function): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  63. def on(component: |[Element, Object], event: |[String, Array[String]], handler: Function): VideoJS.this.type

    Permalink
  64. def on(event: String, handler: Function): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  65. def on(component: Component, event: String, handler: Function): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  66. def one(component: |[Element, Object], event: |[String, Array[String]], handler: Function): VideoJS.this.type

    Permalink
  67. def one(event: String, handler: Function): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  68. def one(component: Component, event: String, handler: Function): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  69. def options(obj: Object): Object

    Permalink
    Definition Classes
    Component
  70. def parseUrl(url: String): Object

    Permalink
  71. def player(): Player

    Permalink
    Definition Classes
    Component
  72. def plugin(name: String, fn: Function): Unit

    Permalink

    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

  73. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  74. def ready(fn: Function, sync: Boolean): VideoJS.this.type

    Permalink
    Definition Classes
    Component
  75. def registerComponent(name: String, comp: Object): Object

    Permalink

    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');
  76. def registerTech(name: String, tech: Object): Object

    Permalink

    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'] });
  77. def removeChild(component: Component): Unit

    Permalink
    Definition Classes
    Component
  78. def removeClass(element: Element, classToRemove: String): Unit

    Permalink
  79. def removeClass(classToRemove: String): Unit

    Permalink
    Definition Classes
    Component
  80. def setAttributes(el: Element, attributes: Object = ???): Unit

    Permalink
  81. def setInterval(fn: Function, interval: Int): Unit

    Permalink
    Definition Classes
    Component
  82. def setTimeout(fn: Function, timeout: Int): Unit

    Permalink
    Definition Classes
    Component
  83. def show(): Unit

    Permalink
    Definition Classes
    Component
  84. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  87. def toggleClass(classToToggle: String, predicate: |[Function, Boolean] = ???): Unit

    Permalink
    Definition Classes
    Component
  88. def toggleElClass(element: Element, classToToggle: String, predicate: |[Boolean, Function] = ???): Unit

    Permalink
  89. def trigger(event: |[Object, String], hash: Object = ???): Unit

    Permalink
    Definition Classes
    Component
  90. def triggerEl(element: Object, event: |[String, Object], hash: Object = ???): Unit

    Permalink
    Annotations
    @JSName( "trigger" )
  91. def triggerReady(): Unit

    Permalink
    Definition Classes
    Component
  92. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  93. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  95. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  96. def width(num: |[Int, String], skipListeners: Boolean): Int

    Permalink
    Definition Classes
    Component

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Component

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped