Echo on local stream(?)

342 views
Skip to first unread message

Enrico Marocco

unread,
Dec 16, 2012, 6:19:44 AM12/16/12
to discuss...@googlegroups.com
Hi folks,

am I the only one getting echo from the local stream display, with latest Canary (25.0.1361.0) on Mac? Very easy to test:

> navigator.webkitGetUserMedia({'audio': true, 'video': true}, function (stream) {v=document.createElement('video'); v.src=webkitURL.createObjectURL(stream); document.getElementsByTagName('body')[0].appendChild(v);v.play();})

Enrico

Henrik Andreasson

unread,
Dec 17, 2012, 3:07:47 AM12/17/12
to discuss...@googlegroups.com
Enrico,

latest Canary (~from Friday last week) now supports rendering of local audio streams. A new demo exists to give an example: 

 
To avoid surprising our users with "echo", the local stream should be muted by default. If you still hear echo, this auto mute functionality seems to not work on your machine.

Try to display the control of the video element for the local stream and mute the audio and see if that helps. Or do v.volume=0.



--
 
 
 

Enrico Marocco

unread,
Dec 17, 2012, 3:59:17 AM12/17/12
to discuss...@googlegroups.com
Hi Henrik,

the video element is actually muted by default (both muted == true and volume == 0), but it seems the Mac version of Canary (today I have 25.0.1362.0) does not honour it. On windows everything works as expected and I can play with audio in loopback through the volume attribute of the video element. On Mac it just doesn't work.

Hope this helps.

Enrico

Henrik Andreasson

unread,
Dec 17, 2012, 4:01:28 AM12/17/12
to discuss...@googlegroups.com
Thanks. Will check what's wrong on Mac. Linux is also OK.


--
 
 
 

Albert Abello

unread,
Dec 17, 2012, 7:46:31 AM12/17/12
to discuss...@googlegroups.com
Same problem here. Should fill a bug report? Getting lots of echo meanwhile no peerconnection is stablished. But it works fine when the call is done.

Cheers

Henrik Andreasson

unread,
Dec 17, 2012, 8:02:06 AM12/17/12
to discuss...@googlegroups.com
A fix has been uploaded to the tip of the tree. Should hit Canary tomorrow.
No need to file a bug report.


--
 
 
 

Albert Abello

unread,
Dec 17, 2012, 8:15:13 AM12/17/12
to discuss...@googlegroups.com
Cool, already opened one. You can close it.


Cheers

Enrico Marocco

unread,
Dec 17, 2012, 9:17:44 AM12/17/12
to discuss...@googlegroups.com
Many thanks, you guys are fast! :-)

Philipp Hancke

unread,
Dec 18, 2012, 12:39:43 PM12/18/12
to discuss...@googlegroups.com
To avoid surprising our users with "echo", the local stream should be muted by default. If you still hear echo, this auto mute functionality seems to not work on your machine.


hej Henrik,

just spent some time debugging because of this. Apparently the element stays muted when, after attaching a local stream (LocalMediaStream element) a MediaStream (from a peerconnection) is attached (i.e. the same element is used to first display the local video and then switches to remote). Is that intended?

Henrik Andreasson

unread,
Dec 18, 2012, 4:21:18 PM12/18/12
to discuss...@googlegroups.com
Philipp,

I must ask for a more details, e.g. actual JS snippets so I can reproduce your issue before I can reply.
Please note that we have done a first basic implementation of local rendering support for M25 and there might be use cases we have not taken into account yet.


--
 
 
 

Enrico Marocco

unread,
Mar 21, 2013, 5:57:44 AM3/21/13
to discuss...@googlegroups.com
Folks, it's happening again :-(

Regression, I guess, still reproducible (only checked Mac) with the same JS one-liner:

> navigator.webkitGetUserMedia({'audio': true, 'video': true}, function (stream) {v=document.createElement('video'); v.src=webkitURL.createObjectURL(stream); document.getElementsByTagName('body')[0].appendChild(v);v.play();})

Or am I missing something?

Enrico

Henrik Andreassson

unread,
Mar 21, 2013, 6:31:11 AM3/21/13
to discuss...@googlegroups.com

Enrico Marocco

unread,
Mar 21, 2013, 11:30:29 AM3/21/13
to discuss...@googlegroups.com
Woops.. I missed that. Apologies.
Reply all
Reply to author
Forward
0 new messages