Interface PopcornImpl

Index

Properties

Methods

Properties

public media: HTMLMediaElement

Methods

public autoplay(flag: boolean): any

Parameters

  • flag: boolean

Returns

any

public buffered(): TimeRanges

Returns

TimeRanges

public compose(name: string, definitionObject: any, manifest?: any): any

Parameters

  • name: string
  • definitionObject: any
  • manifest?: any optional

Returns

any

public controls(flag: boolean): any

Parameters

  • flag: boolean

Returns

any

public cue(time: string, callback: Function): any

Parameters

  • time: string
  • callback: Function

Returns

any

public cue(time: number, callback: Function): any

Parameters

  • time: number
  • callback: Function

Returns

any

public currentTime(time?: string): number

Parameters

  • time?: string optional

Returns

number

public currentTime(time?: number): number

Parameters

  • time?: number optional

Returns

number

public defaults(pluginName: string, options: any): any

Parameters

  • pluginName: string
  • options: any

Returns

any

public destroy(): any

Returns

any

public disable(pluginName: string): any

Parameters

  • pluginName: string

Returns

any

public duration(): number

Returns

number

public emit(eventName: string, dataObject?: any): any

Parameters

  • eventName: string
  • dataObject?: any optional

Returns

any

public enable(pluginName: string): PopcornImpl

Parameters

  • pluginName: string

Returns

PopcornImpl

public exec(time: string, callback: Function): any

Parameters

  • time: string
  • callback: Function

Returns

any

public exec(time: number, callback: Function): any

Parameters

  • time: number
  • callback: Function

Returns

any

public footnote(data: Footnote): any

Parameters

Returns

any

public getLastTrackEventId(): string

Returns

string

public listen(eventName: string, callback: Function): any

Parameters

  • eventName: string
  • callback: Function

Returns

any

public load(): any

Returns

any

public loop(flag: boolean): any

Parameters

  • flag: boolean

Returns

any

public mute(): any

Returns

any

public muted(flag: boolean): any

Parameters

  • flag: boolean

Returns

any

public off(eventName: string, callback: Function): any

Parameters

  • eventName: string
  • callback: Function

Returns

any

public on(eventName: string, callback: Function): any

Parameters

  • eventName: string
  • callback: Function

Returns

any

public pause(time?: number): any

Parameters

  • time?: number optional

Returns

any

public pause(time?: string): any

Parameters

  • time?: string optional

Returns

any

public paused(): boolean

Returns

boolean

public play(time?: number): any

Parameters

  • time?: number optional

Returns

any

public play(time?: string): any

Parameters

  • time?: string optional

Returns

any

public playbackRate(rate?: number): any

Parameters

  • rate?: number optional

Returns

any

public played(): TimeRanges

Returns

TimeRanges

public position(): ClientRect

Returns

ClientRect

public preload(state: string): any

Parameters

  • state: string

Returns

any

public readyState(): number

Returns

number

public removeTrackEvent(id: string): any

Parameters

  • id: string

Returns

any

public roundTime(): number

Returns

number

public seekable(): any

Returns

any

public seeking(): boolean

Returns

boolean

public toggle(pluginName: string): any

Parameters

  • pluginName: string

Returns

any

public trigger(eventName: string, dataObject?: any): any

Parameters

  • eventName: string
  • dataObject?: any optional

Returns

any

public unlisten(eventName: string, callback: Function): any

Parameters

  • eventName: string
  • callback: Function

Returns

any

public unmute(): any

Returns

any

public volume(value?: number): number

Parameters

  • value?: number optional

Returns

number