annotoPlayer

Index

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AudioSource

Ƭ AudioSource: "primary" | "secondary"

PlayerAspectRatio

Ƭ PlayerAspectRatio: "239:100" | "16:9" | "16:10" | "4:3" | "100:239" | "9:16" | "10:16" | "3:4" | "auto"

PlayerEvent

Ƭ PlayerEvent: "play" | "pause" | "seeked" | "seeking" | "timeupdate" | "fullscreenchange" | "ratechange" | "volumechange" | "loadedmetadata" | "durationchange" | "progress" | "waiting" | "playing" | "loadstart"

PlayerEventCallback

Ƭ PlayerEventCallback: function

Type declaration

▸(arg?: any): void

Parameters:

Name

Type

Optional arg

any

Returns: void

TextTrackKind

Ƭ TextTrackKind: Videojs.TextTrack.Kind

TextTrackMode

Ƭ TextTrackMode: Videojs.TextTrack.Mode

VideoType

Ƭ VideoType: "video/mp4" | "video/webm" | "video/youtube" | "application/x-mpegURL"

Variables

<Const> defaultLogger

● defaultLogger: LoggerInterface = getConsoleLogger('AnnotoPlayer')

<Const> defaultWidget

● defaultWidget: WidgetServiceInterface = widgetService

Functions

annotoPlayer

annotoPlayer(elementOrId: string | HTMLElement, options?: PlayerOptions, services?: PlayerServices): Promise<AnnotoPlayer>

Parameters:

Name

Type

Description

elementOrId

string | HTMLElement

Id of HTMLElement or the element DOM element

Optional options

PlayerOptions

player options

Optional services

PlayerServices

player services

Returns: Promise<AnnotoPlayer> Promise that resolves with the player instance

Object literals

<Const> DEFAULT_PLAYER_OPTIONS

DEFAULT_PLAYER_OPTIONS: object

controls

● controls: true = true

defaultVolume

● defaultVolume: number = 0.5

playbackRates

● playbackRates: number[] = [0.75, 1, 1.25, 1.5, 1.75, 2]

playsinline

● playsinline: true = true

preload

● preload: string = "auto"

sources

● sources: undefined[] = []

techOrder

● techOrder: string[] = ['html5', 'youtube']

features

features: object

layout

● layout: false = false

pip

● pip: false = false

timeCut

● timeCut: false = false

html5

html5: object

hls

hls: object

enableLowInitialPlaylist

● enableLowInitialPlaylist: false = false

overrideNative

● overrideNative: true = true

youtube

youtube: object

disableBlockerClick

● disableBlockerClick: number = 1

modestbranding

● modestbranding: number = 1

customVars

customVars: object

origin

● origin: string = location.origin

playsinline

● playsinline: number = 1

rel

● rel: number = 0