Interface VideoJSPlayer

Index

Methods

Methods

public buffered(): TimeRanges

Returns

TimeRanges

public bufferedPercent(): number

Returns

number

public cancelFullScreen(): VideoJSPlayer

Returns

VideoJSPlayer

public currentTime(seconds: number): VideoJSPlayer

Parameters

  • seconds: number

Returns

VideoJSPlayer

public currentTime(): number

Returns

number

public dispose()

public duration(): number

Returns

number

public height(): number

Returns

number

public height(pixels: number): VideoJSPlayer

Parameters

  • pixels: number

Returns

VideoJSPlayer

public off(eventName: string, callback: () => void)

Parameters

  • eventName: string
  • callback: () => void

public on(eventName: string, callback: () => void)

Parameters

  • eventName: string
  • callback: () => void

public pause(): VideoJSPlayer

Returns

VideoJSPlayer

public paused(): boolean

Returns

boolean

public play(): VideoJSPlayer

Returns

VideoJSPlayer

public ready(callback: () => void)

Parameters

  • callback: () => void

public requestFullScreen(): VideoJSPlayer

Returns

VideoJSPlayer

public size(width: number, height: number): VideoJSPlayer

Parameters

  • width: number
  • height: number

Returns

VideoJSPlayer

public src(newSource: string): VideoJSPlayer

Parameters

  • newSource: string

Returns

VideoJSPlayer

public src(newSource: VideoJSSource): VideoJSPlayer

Parameters

Returns

VideoJSPlayer

public src(newSource: VideoJSSource[]): VideoJSPlayer

Parameters

Returns

VideoJSPlayer

public volume(percentAsDecimal: number): TimeRanges

Parameters

  • percentAsDecimal: number

Returns

TimeRanges

public volume(): number

Returns

number

public width(): number

Returns

number

public width(pixels: number): VideoJSPlayer

Parameters

  • pixels: number

Returns

VideoJSPlayer