Hi James,
I think Henrik mean't that you can mute locally using below code:-
<video id="vid1" autoplay="true" muted="true"></video>
We do that in the pc1 demo.
/Vikas
On Mar 27, 9:56 am, James Mortensen <
james.morten...@a-cti.com> wrote:
> Henrik,
>
> We're actually using the <video> element for this. There is no <audio>
> element. Can you perhaps show an example of what you mean? I'm not 100%
> sure we're on the same page.
>
> Thanks! :)
> James
>
>
>
>
>
>
>
> On Wednesday, March 27, 2013 9:52:08 AM UTC-7, Henrik Andreassson wrote:
>
> > Dennis, it is not clear to me why you clone the local media stream if all
> > you want to do is to be able to mute it locally. Why not simply mute the
> > audio element instead?
>
> >>>> e.g. stream.getAudioTracks()[0].**enabled = false;
>
> >>>> On Wednesday, March 27, 2013 11:10:00 AM UTC-4, Shaun wrote:
>
> >>>>> As of Canary 27.0.1454.0, which I got today setting muted no longer
> >>>>> works. We can verify this across multiple machines. Should we file this as
> >>>>> an issue?
>
> >>>>> On Monday, March 11, 2013 12:35:23 PM UTC-7, vikas wrote:
>
> >>>>>> *Hi,*
> >>>>>> *
> >>>>>> *
> >>>>>> *Rendering of a local media stream in a <video> or <audio> element
> >>>>>> has been supported for a while now in Chrome. However, the 'muted'
> >>>>>> attribute of the media element has so far been enabled automatically to
> >>>>>> ensure that users are not surprised by hearing the captured audio being
> >>>>>> played back on the local machine. Local audio rendering can be useful e.g
> >>>>>> when testing the microphone and speaker configuration and should be done
> >>>>>> with a headset since no echo control is enabled. *
> >>>>>> *
> >>>>>> *
> >>>>>> *Starting with today's Chrome Canary (** version 27.0.1436.1 **), we
> >>>>>> are removing the existing auto-mute functionality to comply with the W3C
> >>>>>> standard better. Avoiding local audio feedback in these situations is easy.
> >>>>>> Simply set the muted attribute either in the tag itself or from JS. e.g
> >>>>>> <video autoplay="true" muted="true"/>.*
> >>>>>> *
> >>>>>> *
> >>>>>> *The latest version also supports multiple local renderers, i.e.,
> >>>>>> one local media stream can be used by many audio/video elements all
> >>>>>> rendering the same local stream where the volume and mute state of each
> >>>>>> stream can be set individually.*
> >>>>>> *
> >>>>>> *
> >>>>>> *You can refer tohttps://
webrtc.googlecode.com/svn/trunk/samples/js/
> >>>>>> demos/html/local-audio-rendering.html as an example.*
> >>>>>> *
> >>>>>> *
> >>>>>> */Vikas*