       console? && console.log @container
 
     getCurrentSlideScreenshot: () ->
+      $('#player-content-wrapper > #slide_image', @container).prop('src')
 
     next: () ->
-      $('.overnav > .next', @container).click()
+      $('.overnav > .next', @container)[0].click()
     previous: () ->
-      $('.overnav > .prev', @container).click()
-
+      $('.overnav > .prev', @container)[0].click()
 
   class SlideshareRemote extends RemoteControlDriver
   class ScribdRemote extends RemoteControlDriver

  class Remote 
    constructor: (@url) ->
      @driver = {}
      this.setupRemote
    # Based on url, load corresponding remote driver  
    setupRemote: () -> 
      @driver = switch
        when @url.indexOf('http://speakerdeck.com/') > 1 then new SpeakerdeskRemote
        when @url.indexOf('http://slideshare.net/') > 1  then new SlideshareRemote
        when @url.indexOf('http://www.scribd.com/') > 1  then new ScribdRemote
        else new RabbitRemote

    previous: () ->

      slideInfo.set code

      remoteQueu = new Firebase "#{baseFirebaseUrl}qc/"
      console.log remoteQueu
      
      this.showConnectionBoard() 
      remoteQueu.limit(200).on 'child_added', (snapshot) ->
        console.log(snapshot)
        message = snapshot.val()
        console.log(message)
        switch message.cmd
          when 'handshake'
            #if localStorage['allow']? and message.from == localStorage['allow']
              #return true

            if confirm("Allow connection from #{message.name}?")
              connection.set('connected_from', message.from)
              localStorage['allow'] = message.from
          when 'next'
            remote.next()
          when 'prev', 'previous'
            remote.previous()
          when 'current'
            remote.getCurrentSlide()
          else
            console.log "Not implement"
        #Okay, remove that command
        r = new Firebase("https://qcommander.firebaseio-demo.com//#{connection.get('token')}/qc/".concat(snapshot.name()))
        r.remove()

    showConnectionBoard: () ->
      return this.render()
