使用RTC的Firefox createMediaStreamDestination错误? [英] Firefox createMediaStreamDestination bug using rtc?
问题描述
我流音频在RTC和想要静音和取消静音音频。
I stream audio over rtc and want to mute and unmute the audio.
本作品...但没有增益控制:
This works... but no gain control:
function(stream) { /* getUserMedia stream */
console.log("Access granted to audio/video");
peer_connection.addStream(stream);
}
这适用于Chrome但不是在Firefox(增益控制)
This works on chrome but NOT on Firefox (with gain control)
function(stream) { /* getUserMedia stream */
console.log("Access granted to audio/video");
var microphone = context.createMediaStreamSource(stream);
gainNode = context.createGain();
var dest = context.createMediaStreamDestination();
microphone.connect(gainNode);
gainNode.connect(dest);
local_media_stream = dest.stream;
peer_connection.addStream(local_media_stream);
}
我没有得到任何错误,我没有听到声音。
当我送gainNode到context.destination我能听到自己。
I get no error and i hear no voice. When I send the gainNode to context.destination i can hear myself.
我觉得context.createMediaStreamSource(流)以任何方式被打破。
谁能告诉我为什么吗?以及如何解决这个问题。
I think "context.createMediaStreamSource(stream)" is broken in any way. Can anyone tell me why ? and how to fix this.
编辑:所以,我检查了流和:
So i checked the streams and:
stream //type: LocalMediaStream
dest.steam //type: MediaStream
在Firefox!在Chrome都是MediaStreams
in Firefox! In chrome both are MediaStreams
推荐答案
好感谢@Ken费腾博格我只是想火狐Nighly建设。
在everythink工作正常(如铬)的Nighly。数据类型是:
Ok thanks to @Ken Fyrstenberg I just tried the Firefox Nighly build. On the Nighly everythink works fine (as in Chrome). The data types are:
stream //type: LocalMediaStream
dest.steam //type: MediaStream
和以前一样,但我能听到对手,并能静音麦克风。
as before, but I can hear the opponent and be able to mute the mic.
所以我只有等待发布:P
So I only have to wait for release :P
这篇关于使用RTC的Firefox createMediaStreamDestination错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!