title: Got an JavaScript object instead of a MediaStream object
body: <p>My problem is that I get a JavaScript object instead of a MediaStream object.
  That wouldn't be a big problem if the addStream method would allow JavaScript objects, too.
  The JavaScript object owns the same attributes as a MediaStream object.</p>
  
  <p>The question is now: Is there a way to create a new MediaStream object with the attributes of the JavaScript object or to cast the JavaScript object to a MediaStream object?</p>
  
  <p>The exact error of the console: 
  "Uncaught Type Error: Failed to execute 'addStream' on 'RTCPeerConnection': parameter 1 is not of type 'MediaStream'."</p>
  
  <p>EDIT:
  I took two screenshots of the MediaStream object before sending as JSON and the recieved object, which should be a MediaStream object, too.
  <a href="http://imgur.com/KASspyq,2yPBgDB#0" rel="nofollow">MediaStream Object</a> <a href="http://imgur.com/KASspyq,2yPBgDB#1" rel="nofollow">JavaScript Object</a></p>