Preparing search index...
The search index is not available
Annoto Player - v5.4.1
Annoto Player
Player
AnnotoPlayer
Class AnnotoPlayer
Hierarchy
AnnotoPlayer
Index
Constructors
constructor
Properties
videojs
Accessors
aspect
Ratio
current
Src
current
Time
duration
fullscreen
is
Setup
paused
Methods
add
Text
Track
close
close
Widget
destroy
Widget
get
Implementation
get
Widget
Api
layout
load
Src
load
Widget
off
on
once
pause
pip
play
remove
Text
Track
Kind
reset
set
Aspect
Ratio
set
Autio
Source
set
Autoplay
set
Pip
Layout
set
PipUI
set
Poster
setup
setup
Widget
time
Cut
Constructors
constructor
new
Annoto
Player
(
logger
,
widget
)
:
AnnotoPlayer
Parameters
logger
:
ILogger
widget
:
IWidgetService
Returns
AnnotoPlayer
Properties
videojs
videojs
:
typeof
videojs
= videojs
Accessors
aspect
Ratio
get
aspectRatio
(
)
:
PlayerAspectRatioType
Returns
PlayerAspectRatioType
current
Src
get
currentSrc
(
)
:
ISourceObject
Returns
ISourceObject
current
Time
get
currentTime
(
)
:
number
Returns
number
duration
get
duration
(
)
:
number
Returns
number
fullscreen
get
fullscreen
(
)
:
boolean
Returns
boolean
is
Setup
get
isSetup
(
)
:
boolean
Returns
boolean
paused
get
paused
(
)
:
boolean
Returns
boolean
Methods
add
Text
Track
add
Text
Track
(
trackOpts
)
:
Promise
<
void
>
|
Promise
<
HTMLTrackElement
>
Parameters
trackOpts
:
ITextTrackOptions
Returns
Promise
<
void
>
|
Promise
<
HTMLTrackElement
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
close
Widget
close
Widget
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Deprecated
Use destroyWidget() instead
destroy
Widget
destroy
Widget
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Implementation
get
Implementation
(
)
:
Promise
<
IPlayerImplementation
>
Returns
Promise
<
IPlayerImplementation
>
get
Widget
Api
get
Widget
Api
(
)
:
Promise
<
IAnnotoApi
>
Returns
Promise
<
IAnnotoApi
>
layout
layout
(
)
:
Promise
<
ILayoutPlugin
>
Returns
Promise
<
ILayoutPlugin
>
load
Src
load
Src
(
src
?
,
pipSrc
?
,
audioSource
?
)
:
Promise
<
AnnotoPlayer
>
Parameters
Optional
src
:
ISourceObject
Optional
pipSrc
:
ISecondarySourceObject
Optional
audioSource
:
AudioSourceType
Returns
Promise
<
AnnotoPlayer
>
load
Widget
load
Widget
(
host
?
)
:
Promise
<
void
>
Parameters
Optional
host
:
HTMLElement
Returns
Promise
<
void
>
off
off
(
eventT
,
cb
)
:
Promise
<
void
>
Parameters
eventT
:
PlayerEventType
cb
:
PlayerEventCallback
Returns
Promise
<
void
>
on
on
(
eventT
,
cb
)
:
Promise
<
void
>
Parameters
eventT
:
PlayerEventType
cb
:
PlayerEventCallback
Returns
Promise
<
void
>
once
once
(
eventT
,
cb
)
:
Promise
<
void
>
Parameters
eventT
:
PlayerEventType
cb
:
PlayerEventCallback
Returns
Promise
<
void
>
pause
pause
(
)
:
Promise
<
VideoJsPlayer
>
Returns
Promise
<
VideoJsPlayer
>
pip
pip
(
)
:
Promise
<
IPipPlugin
>
Returns
Promise
<
IPipPlugin
>
play
play
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
remove
Text
Track
Kind
remove
Text
Track
Kind
(
kind
)
:
Promise
<
void
>
Parameters
kind
:
Kind
Returns
Promise
<
void
>
reset
reset
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
set
Aspect
Ratio
set
Aspect
Ratio
(
ratio
)
:
Promise
<
any
>
Parameters
ratio
:
PlayerAspectRatioType
Returns
Promise
<
any
>
set
Autio
Source
set
Autio
Source
(
source
?
)
:
Promise
<
void
>
Parameters
source
:
AudioSourceType
= 'primary'
Returns
Promise
<
void
>
set
Autoplay
set
Autoplay
(
val
)
:
void
Parameters
val
:
boolean
Returns
void
set
Pip
Layout
set
Pip
Layout
(
params
)
:
Promise
<
void
>
Parameters
params
:
ILayoutParams
Returns
Promise
<
void
>
set
PipUI
set
PipUI
(
ui
)
:
Promise
<
void
>
Parameters
ui
:
IPipPluginUI
Returns
Promise
<
void
>
set
Poster
set
Poster
(
posterUrl
)
:
Promise
<
void
>
Parameters
posterUrl
:
string
Returns
Promise
<
void
>
setup
setup
(
element
,
options
?
)
:
Promise
<
IPlayerImplementation
>
Parameters
element
:
string
|
Element
options
:
IPlayerOptions
= {}
Returns
Promise
<
IPlayerImplementation
>
setup
Widget
setup
Widget
(
config
?
,
bootstrapUrl
?
,
playerParams
?
)
:
Promise
<
void
>
Parameters
Optional
config
:
Omit
<
IConfig
<
IFeatures
>
,
"widgets"
>
Optional
bootstrapUrl
:
string
Optional
playerParams
:
Record
<
string
,
unknown
>
Returns
Promise
<
void
>
time
Cut
time
Cut
(
)
:
Promise
<
ITimeCutPlugin
>
Returns
Promise
<
ITimeCutPlugin
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
videojs
aspect
Ratio
current
Src
current
Time
duration
fullscreen
is
Setup
paused
add
Text
Track
close
close
Widget
destroy
Widget
get
Implementation
get
Widget
Api
layout
load
Src
load
Widget
off
on
once
pause
pip
play
remove
Text
Track
Kind
reset
set
Aspect
Ratio
set
Autio
Source
set
Autoplay
set
Pip
Layout
set
PipUI
set
Poster
setup
setup
Widget
time
Cut
Annoto Player - v5.4.1
Main
Player
Widget
[Plugin]Layout
[Plugin]Pip
[Plugin]Timecut
scripts/player/interfaces
scripts/widget/interfaces
scripts/widget/service
Deprecated
Use destroyWidget() instead