Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method list

on(event, callback)

Listen to a player event

nextContent

Jump to next content or first content when called first time

prevContent

Jump to previous content

setContentByIndex

start a specific content

getWidth

Get player width

getHeight

Get player height

setSize(width, height)

Resize the player to the specified size

getContentDuration

Returns the content duration in sec

getContentCurrentTime

Get current time of content video in sec

setContentCurrentTime

Set the current content time in sec

play

Play the player

pause

Pause the player

mute

Mute the player

unmute

Unmute the player

getMuted

Returns if the player is muted or not

getVolume

Returns player volume

setVolume(vol)

Set player volume (Not working in ios)

changeGUI(contentProp, adsProp)

Set in runtime specific gui propertise

getAdDuration

Returns current playing ad duration

getAdRemainingTime

Returns current playing ad remaining play time

skipAd

Skip current playing ad

closePlayer

Close player

setAdConfig({atribute:value})

Update the ads player config