             video.muted = yes
             @newStream event, { video : video , uid : window.Voicious.currentUser._id , local : yes }
         ($ window).on 'resize', () =>
-            do @squareMainCam
             videos = ($ 'video')
             for video in videos
                 @centerVideoTag ($ video)

            video = (mainLi.find 'video')
            if video?
                @zoom (video.attr 'rel'), video
        do @squareMainCam

    squareMainCam : () =>
        @jqMainCams.width do @jqMainCams.height

    delStream   : (event, user) =>
        if (@streams.indexOf user.id) >= 0


    resizeZoomCams : () =>
        cam = ($ '#mainCam')
        x = do cam.width
        y = do cam.height
        n = Object.keys(@zoomCams).length
        px = Math.ceil(Math.sqrt(n * x / y))
        if n is 0
            return
        if Math.floor(px * y / x) * px < n
            sx = y / Math.ceil(px * y / x)
        else
            sx = x / px

        py = Math.ceil(Math.sqrt(n * y/ x))
        if Math.floor(py * x / y) * py < n
            sy = x / Math.ceil(x * py / y)
        else
            sy = y / py
        size = if sx > sy then sx else sy
        for key, li of @zoomCams
            li.css 'width', "#{size}px"
            li.css 'height', "#{size}px"
