Skip to content

Instantly share code, notes, and snippets.

@dfranciosi
Created February 2, 2012 14:39
Show Gist options
  • Save dfranciosi/1723763 to your computer and use it in GitHub Desktop.
Save dfranciosi/1723763 to your computer and use it in GitHub Desktop.
initPlayer: (tagId, args) =>
if args.controls is 'hide'
$("##{tagId}").parent().addClass('controls_hidden').find('.overlay').
mouseover(-> $("##{tagId} .vjs-controls").addClass 'force_show').
mouseout(-> $("##{tagId} .vjs-controls").removeClass 'force_show')
@player = _V_(tagId);
@player.tag.pause()
@playTimeout = setTimeout @play, 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment