Browse Source

fix for issue 1

Dennis Mårtensson 12 years ago
parent
commit
2e20bc7e3a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      example/index.html

+ 2 - 1
example/index.html

@@ -123,7 +123,8 @@
 
       function init() {
         if(PeerConnection){
-          rtc.createStream('you', function(stream) {
+          rtc.createStream({"video": true, "audio": true}, function(stream) {
+            document.getElementById('you').src = URL.createObjectURL(stream);
             videos.push(document.getElementById('you'));
             rtc.attachStream(stream, 'you');
             subdivideVideos();