Page tree

Versions Compared

Key

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

...


 

Fullscreen API support

 

The Frequency Javascript video player provides wrapper around Fullscreen API. Supported browsers:

 

Desktop BrowserVersion
IE11+
Edge12+
FF10+
Chrome15+
Opera15+
Safari5.1+

 

Mobile OSVersion
Android-
iOS-
Windows PhoneIE Mobile 11+


Class Documentation

Player Class

...

options - additional options (optional) eg. adsConfig (Frequency.Player.AdsConfig)

Returns:

void

 

setVolume

Code Block
setVolume(volume:Number)

...

Parameters:

 none

Returns:

 Number

 

isFullscreen 

Code Block
isFullscreen()

...

Event

Type

Description

onError

Function

An error occurred.

onReady

Function

JS player ready for actions.

onMediaReady

Function

Media player ready.

onStateChange

Function

Player state has changed.

onProgress

Function

Players progress changed.

onVastEventFunctionVast Ad Event occurred.
onVolumeChangeFunctionPlayer volume has changed.
onActivityErrorFunctionActivity call failed.

Video Playback States

State

Value

Description

UNKNOWN

undefined

Player state is unknown, player setup process did not finished.

UNSTARTED

-1

Player media ready but pending play action.

ENDED

0

Player finished playback.

PLAYING

1

Player is currently playing a video.

PAUSED

2

Player paused.

BUFFERING

3

Player is buffering.

LOCKED

4

Player locked by internal action.

 

SEEKING5Played seeking.
ERROR6Player interface returned error.

...