Skip to content

Commit

Permalink
play on ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Brumm committed Oct 19, 2013
1 parent dfeb26d commit 4ce98d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/backbone/modules/video.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Zinc.App.module "Video", (Video, App) ->
player: @media player: @media
@view.render() @view.render()


@media.on 'ready', (time) => @media.play()

@media.on 'tick', (time) => @media.on 'tick', (time) =>
if App.current_user.is_role("mod", "owner") and time % 3 if App.current_user.is_role("mod", "owner") and time % 3
App.Room.do "video_sync", App.Room.do "video_sync",
Expand Down

0 comments on commit 4ce98d8

Please sign in to comment.