Page tree

Versions Compared

Key

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

...

Version History

Version #DescriptionFile
1.2.0Video activities, poster, bugfixes 

1.1.0

(Current) 

Volume control functions and bugfixes.

http://demo-player.frequency.com/_assets/interface.js

 

player-1.1.0.zip

1.0.0This is the first version of the Frequency player that supports VMAP, VPAID, VAST 2.0, VAST 3.0 advertising standards and MP4 and HLS video formats.

http://demo-player.frequency.com/_assets/interface.js

   

...

Param

TypeDescriptionDefault
urlStringThe video file url.-
startPositionNumberThe video start position0
autoplayBooleanAutoplay the video after it is loaded.

false

 

hlsBooleanEnables MP4 HLS playerfalse
adConfigObjectFrequency.Player.AdsConfig object 
videoIdNumberVideo id used in video activities 
posterUrlStringUrl to poster image displayed before video playback 

 

Player Constructor

Code Block
Frequency.Player();
Frequency.Player(
   undefined, {
	  session: {
          'X-Frequency-Auth': '...',
          'X-Frequency-DeviceId': '...'
	  }
      video: {
      },
      events: {
      },
      (...)
   }
); 

...

events - The Frequency.Player.Events object to bind playback event listeners.

session - User session tokens required for activities

Returns:

An initialized Player object.

...

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.

 

Code Examples

Initialization

...