adding 3rd param to getUserMedia
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 30 May 2013 17:37:51 +0200
changeset 47 05a05fc783b3
parent 46 f3a52cbf9147
child 48 9353b5694820
adding 3rd param to getUserMedia
submitted/W3C/mediastream-addtrack.html
--- a/submitted/W3C/mediastream-addtrack.html	Thu May 30 17:36:31 2013 +0200
+++ b/submitted/W3C/mediastream-addtrack.html	Thu May 30 17:37:51 2013 +0200
@@ -21,10 +21,10 @@
 t.step(function () {
   var audio, video;
 
-  navigator.getUserMedia({audio: true}, gotAudio);
+  navigator.getUserMedia({audio: true}, gotAudio, function(error) {});
   function gotAudio(stream) {
     audio = stream;
-    navigator.getUserMedia({video: true}, gotVideo);
+    navigator.getUserMedia({video: true}, gotVideo, function(error) {});
   }
 
   function gotVideo(stream) {