added video.stream = stream to access stream from outside