Created
October 23, 2013 15:44
-
-
Save pgdaniel/7121141 to your computer and use it in GitHub Desktop.
videojs problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
videojs @$("video")[0], { | |
1 techOrder: ["html5", "flash"] | |
2 preload: "auto" | |
3 }, () -> | |
4 @videoPlayer = @ | |
5 console.log "VID PLAYER" | |
6 console.log @videoPlayer | |
7 | |
8 SQ.Widget.Application.hideLoader() | |
9 | |
10 @videoPlayer.on "play", @_onVideoPlay | |
11 @videoPlayer.on "ended", @_onVideoEnded | |
12 | |
13 $(window).bind "resize", @_onResize |
_onVideoPlay: =>
@$overlay.hide()
@$overlayAfter.hide()
_onVideoEnded: =>
unless @voted
@$overlayAfter.show()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you paste the definitions of
_onVideoPlay
and_onVideoEnded
here?