Skip to content

Instantly share code, notes, and snippets.

@haroldSanchezb
Created July 25, 2014 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haroldSanchezb/33757c7cb70bb428c1f6 to your computer and use it in GitHub Desktop.
Save haroldSanchezb/33757c7cb70bb428c1f6 to your computer and use it in GitHub Desktop.
jwplayer
<?php
$video_url = "jwplayer('video_content').setup({
file: '".$video_content."',
image: '".$video_image."',
width: '100%',
aspectratio: '16:9'
});";
drupal_add_js($video_url,
array(
'type' => 'inline',
'scope' => 'footer'
)
);
$variables['video'] = '<div id="video_content"></div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment