From eddc5a66547bf5f33f517b8a73a244ff3129bc59 Mon Sep 17 00:00:00 2001 From: "vikasmarwaha@webrtc.org" Date: Thu, 14 Mar 2013 23:34:19 +0000 Subject: [PATCH] Updated local-audio-rendering.html to remove unmute. Review URL: https://webrtc-codereview.appspot.com/1193004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3670 4adac7df-926f-26a2-2b94-8c16560cd09d --- samples/js/demos/html/local-audio-rendering.html | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/samples/js/demos/html/local-audio-rendering.html b/samples/js/demos/html/local-audio-rendering.html index 6ffaa97e5..201b9fe5a 100644 --- a/samples/js/demos/html/local-audio-rendering.html +++ b/samples/js/demos/html/local-audio-rendering.html @@ -34,17 +34,6 @@ console.log('gotStream({audio:true, video:false})'); console.log('Using audio device: ' + audioTracks[0].label); attachMediaStream(audioElement, stream); - - // The audio will be muted by default from start. - // Unmute and set volume to max level so we can listen to audio in - // loopback. We restore the volume in a 'play' event to ensure that - // loading has been done (auto-mute is performed during load). - audioElement.addEventListener('play', function() { - audioElement.muted = false; - audioElement.volume = 1; - console.log('Unmuting and setting volume to max level'); - }, false); - stream.onended = function() { console.log('stream.onended'); buttonStart.disabled = false;