Skip to content

Instantly share code, notes, and snippets.

@cktricky
Created March 5, 2014 01:09
Show Gist options
  • Save cktricky/9359210 to your computer and use it in GitHub Desktop.
Save cktricky/9359210 to your computer and use it in GitHub Desktop.
<script type='text/javascript'>
jwplayer('my-video').setup({
primary: "flash",
sources: [
{file: <%= sanitize(@video.signed_html5.inspect) %>},
{file: <%= sanitize(@video.signed_flash.inspect) %>}
],
skin: 'someSkin',
flashplayer: <%= sanitize(asset_path('swf/jwplayer.flash.swf').inspect) %>,
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment