|
@@ -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();
|