         video.addClass 'thumbnailVideo'
         video.attr 'rel', data.uid
         @emitter.trigger 'stream.display', video
-        if not @currentZoom? and (not data.local? or not data.local)
+        if Object.keys(@zoomCams).length == 0 and (not data.local? or not data.local)
             @zoom data.uid, video
 
     changeStreamState : (event, data) =>

    zoom : (uid, video) =>
        container    = ($ 'div#mainCam')
        container.removeClass 'hidden'
        do (container.find 'video').remove
        @currentZoom = uid
        if video?
            newVideo     = do video.clone
            newVideo[0].volume = video[0].volume
            newVideo.removeClass 'thumbnailVideo'
            do newVideo[0].play
            container.append newVideo

if window?
    window.Camera = Camera

        do @appendHTML
        @jqMainCams       = ($ '#mainCam')
        @jqVideoContainer = ($ 'ul#videos')
        @zoomCams         = { }
        @streams          = [ ]
        ($ 'button#joinConference').bind 'click', @enableCamera
        @emitter.on 'stream.create', @newStream
