Thanks Wei, To add you can test it by right clicking on the local/
remote video and select show controls. It should work in today's
canary.
/Vikas
On Oct 30, 10:32 am, Wei Jia <
w...@google.com> wrote:
> Audio volume control should be hooked up in canary 24.0.1312.0.
>
> Wei
>
>
>
>
>
>
>
> On Mon, Oct 29, 2012 at 6:38 PM, Silent Tiger <
cia.fbi....@gmail.com> wrote:
> > First, thanks for your reply, but, I mean mute the REMOTE media stream,
> > not local.
> > The muting of local stream works fine, but this way doesn't work on the
> > remote stream.
>
> > 在 2012年10月30日星期二UTC+8上午8时19分03秒,Vikas写道:
>
> >> Hi,
>
> >> I tested the mute functionality in 1311.1 canary seems to work fine. You
> >> can refer to apprtc <
http://apprtc.appspot.com> code. Below is some
> >> snippet for audio muting.
>
> >> function toggleAudioMute() {
> >> if (localStream.audioTracks.lengt**h === 0) {
> >> console.log("No local audio available.");
> >> return;
> >> }
>
> >> if (isAudioMuted) {
> >> for (i = 0; i < localStream.audioTracks.length**; i++) {
> >> localStream.audioTracks[i].ena**bled = true;
> >> }
> >> console.log("Audio unmuted.");
> >> } else {
> >> for (i = 0; i < localStream.audioTracks.length**; i++){
> >> localStream.audioTracks[i].ena**bled = false;