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
This commit is contained in:
parent
33f22d01f0
commit
eddc5a6654
@ -34,17 +34,6 @@
|
|||||||
console.log('gotStream({audio:true, video:false})');
|
console.log('gotStream({audio:true, video:false})');
|
||||||
console.log('Using audio device: ' + audioTracks[0].label);
|
console.log('Using audio device: ' + audioTracks[0].label);
|
||||||
attachMediaStream(audioElement, stream);
|
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() {
|
stream.onended = function() {
|
||||||
console.log('stream.onended');
|
console.log('stream.onended');
|
||||||
buttonStart.disabled = false;
|
buttonStart.disabled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user