I'm trying to make a videochat, but the remote stream doesn't show. I'm using URLLoaders in combination with PHP sessions to store and fetch peer IDs from a MySQL database. If I go into chat with someone and visit the getpeer.php page, I get the other person's peer ID, so I'm assuming that's working.
Code: http://pastebin.com/L3RfNi81 (this is just for the webcams, the chat itself is done in PHP)
I think it's because I'm initializing the remote stream before there's one available. But I'm not sure how I would go about that.
Thanks in advance.