有谁知道是否可以将麦克风实例附加到多个 NetStream 实例?我在两个不同的 NetStream 实例上调用 attachAudio,我没有收到错误消息,但它也不起作用。以下代码示例的预期行为是什么?
NetStream stream1 = new NetStream(connection1);
NetStream stream2 = new NetStream(connection2);
Microphone mic = Microphone.getMicrophone(-1);
stream1.attachAudio(mic);
stream2.attachAudio(mic);
stream1.publish();
stream2.publish();