Skip to content

Instantly share code, notes, and snippets.

@heijmerikx
Created December 8, 2011 08:37
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 heijmerikx/1446468 to your computer and use it in GitHub Desktop.
Save heijmerikx/1446468 to your computer and use it in GitHub Desktop.
JWplayer javascrip embed code in haml, including custom logo configuration.
#vc
Loading player...
:javascript
jwplayer("vc").setup({
flashplayer: "#{asset_path 'jwplayer/player.swf'}",
file: "#{@video.path}_site.mp4",
image: "http://#{APP_CONFIG['bucket_name']}.s3.amazonaws.com/#{@thumb}/site/frame_0004.png",
height: 375,
width: 700,
streamer: "rtmp://#{APP_CONFIG['cloudfront_url_video']}/cfx/st",
'logo.file': "#{image_path('logo.png')}",
'logo.hide': true,
'logo.position': "top-right",
'logo.timeout': 5
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment