Page tree

Versions Compared


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


Constructs a Player object for video playback.

Constructor also accept element, which will be replaced by video player (* PlayerLite can only accept existing video element)

Code Block
// element provided as string
new Frequency.Player('#player', {...});
// element provided directly as DOM node
new Frequency.Player(document.getElementById('player'), {...});
new Frequency.PlayerLite(document.getElementsByTagName('video')[0], {...});


video - The Frequency.Player.Video object containing the video url, playback start position along with whether to auto play the video once loaded.