Skip to content
giannif edited this page Dec 16, 2014 · 1 revision

When passing an element to the PJS.Player constructor, or using the auto-create approach, the element can have properties that act as its config. These properties match the config properties but are preceded with data-.

The available properties are:

  • data-contenturi - the uri for the player
  • data-flash-vars - (legacy) creates a flashVars object from name/value pairs.
  • data-auto-play - try to auto play the video (flash only).
  • data-auto-create - on page load, create the placeholders (or player for html5). If autoPlay is true, the player will play for flash, and attempt to play for p-js, if we're on mobile we can't play a video unless the player is created within a click event.
Clone this wiki locally