asciinema.org/app/assets/javascripts/player/player.js.coffee

19 lines
396 B
CoffeeScript

class Asciinema.Player extends Asciinema.AbstractPlayer
constructor: (@options) ->
@createWorkerProxy()
super
createWorkerProxy: ->
@workerProxy = new Asciinema.WorkerProxy(window.mainWorkerPath)
createMovie: ->
@movie = @workerProxy.getObjectProxy 'movie'
onModelReady: ->
@initWorkerProxy()
super
initWorkerProxy: ->
@workerProxy.init @movieOptions()