                 uid   : @id
             emitter.trigger 'stream.create', data
         @pc.onremovestream = (event) =>
-                console.log event
+            streamID = event.stream.id
+            do ($ "[data-streamid=#{streamID}]").remove
         @addStream localStream
 
     addStream : (s) =>

            console.log @peers
            for id, peer of @peers
                peer.rmLocalStream @localStream
        @localStream = undefined
        if @userMedia['video'] is yes or @userMedia['audio'] is yes
            console.log "On Enable la camera"


createVideoTag = (stream) ->
    videoTag          = document.createElement 'video'
    videoTag.setAttribute 'data-streamid', stream.id
    videoTag.autoplay = yes
    if MOZILLA
        videoTag.mozSrcObject = stream
