Source Code Documentation


s2member\includes\templates\players\jwplayer-v6.php


  1. <?php
  2. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  3. exit("Do not access this file directly.");
  4. ?>
  5.  
  6. <div id="%%player_id%%" class="s2member-jwplayer-v6"></div>
  7. <script type="text/javascript" src="%%player_path%%"></script>
  8. <script type="text/javascript">
  9. if(typeof jwplayer.key !== 'string' || !jwplayer.key)
  10. jwplayer.key = '%%player_key%%';
  11.  
  12. jwplayer('%%player_id%%').setup
  13. ({
  14. playlist:
  15. [{
  16. title: '%%player_title%%',
  17. image: '%%player_image%%',
  18.  
  19. mediaid: '%%player_mediaid%%',
  20. description: '%%player_description%%',
  21.  
  22. captions: %%player_captions%%,
  23.  
  24. sources: // Available sources.
  25. [
  26. {file: '%%url%%'}
  27. ]
  28. }],
  29.  
  30. controls: %%player_controls%%,
  31. skin: '%%player_skin%%',
  32. stretching: '%%player_stretching%%',
  33. width: %%player_width%%,
  34. height: %%player_height%%,
  35. aspectratio: '%%player_aspectratio%%',
  36.  
  37. autostart: %%player_autostart%%,
  38. fallback: %%player_fallback%%,
  39. mute: %%player_mute%%,
  40. primary: '%%player_primary%%',
  41. repeat: %%player_repeat%%,
  42. startparam: '%%player_startparam%%',
  43.  
  44. %%player_option_blocks%%
  45. });
  46. </script>

s2member\includes\templates\players\jwplayer-v6.php

Source Code Documentation