Interface JWPlayer

Index

Methods

Methods

public addButton(icon: string, label: string, handler: () => void, id: string)

Parameters

  • icon: string
  • label: string
  • handler: () => void
  • id: string

public getBuffer(): number

Returns

number

public getCaptionsList(): Array<any>

Returns

Array<any>

public getControls(): boolean

Returns

boolean

public getCurrentCaptions(): number

Returns

number

public getCurrentQuality(): number

Returns

number

public getDuration(): number

Returns

number

public getFullscreen(): boolean

Returns

boolean

public getHeight(): number

Returns

number

public getMute(): boolean

Returns

boolean

public getPlaylist(): Array<any>

Returns

Array<any>

public getPlaylistIndex(): number

Returns

number

public getPlaylistItem(index: number): any

Parameters

  • index: number

Returns

any

public getPosition(): number

Returns

number

public getQualityLevels(): Array<any>

Returns

Array<any>

public getRenderingMode(): string

Returns

string

public getSafeRegion(): Array<any>

Returns

Array<any>

public getState(): string

Returns

string

public getVolume(): number

Returns

number

public getWidth(): number

Returns

number

public load(playlist: any)

Parameters

  • playlist: any

public load(playlist: string)

Parameters

  • playlist: string

public onBeforePlay(callback: () => void)

Parameters

  • callback: () => void

public onBuffer(callback: () => void)

Parameters

  • callback: () => void

public onBufferChange(callback: () => void)

Parameters

  • callback: () => void

public onCaptionsChange(callback: () => void)

Parameters

  • callback: () => void

public onCaptionsList(callback: () => void)

Parameters

  • callback: () => void

public onComplete(callback: () => void)

Parameters

  • callback: () => void

public onControls(callback: () => void)

Parameters

  • callback: () => void

public onDisplayClick(callback: () => void)

Parameters

  • callback: () => void

public onError(callback: () => void)

Parameters

  • callback: () => void

public onFullscreen(callback: () => void)

Parameters

  • callback: () => void

public onIdle(callback: () => void)

Parameters

  • callback: () => void

public onMeta(callback: () => void)

Parameters

  • callback: () => void

public onMute(callback: () => void)

Parameters

  • callback: () => void

public onPlay(callback: () => void)

Parameters

  • callback: () => void

public onPlaylist(callback: () => void)

Parameters

  • callback: () => void

public onPlaylistComplete(callback: () => void)

Parameters

  • callback: () => void

public onPlaylistItem(callback: () => void)

Parameters

  • callback: () => void

public onQualityChange(callback: () => void)

Parameters

  • callback: () => void

public onQualityLevels(callback: () => void)

Parameters

  • callback: () => void

public onReady(callback: () => void)

Parameters

  • callback: () => void

public onResize(callback: () => void)

Parameters

  • callback: () => void

public onSeek(callback: () => void)

Parameters

  • callback: () => void

public onTime(callback: () => void)

Parameters

  • callback: () => void

public onVolume(callback: () => void)

Parameters

  • callback: () => void

public pause()

public play()

public playlistItem(index: number)

Parameters

  • index: number

public registerPlugin(id: string, target: string, jsPlugin: () => void, swfURL?: string)

Parameters

  • id: string
  • target: string
  • jsPlugin: () => void
  • swfURL?: string optional

public remove()

public removeButton(id: string)

Parameters

  • id: string

public resize(width: number, height: number)

Parameters

  • width: number
  • height: number

public seek(position: number)

Parameters

  • position: number

public setControls(controls: boolean)

Parameters

  • controls: boolean

public setCurrentCaptions(index: number)

Parameters

  • index: number

public setCurrentQuality(index: number)

Parameters

  • index: number

public setMute(state: boolean)

Parameters

  • state: boolean

public setVolume(volume: number)

Parameters

  • volume: number

public setup(options: any): JWPlayer

Parameters

  • options: any

Returns

JWPlayer

public stop()