Copy link to clipboard
Copied
I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.
No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work.
I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.
I tried setting the mx VideoDisplay volume to 0 and that does not work.
I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.
BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.
Can anyone help with this?
Copy link to clipboard
Copied
Hi,
receiveAudio(false) is used to mute the audio on the client sid i.e if a user doesn't want to listen to the audio in the stream he is subscribed to.
And I didn't get excact flow of your chat app. You are trying to mute the audio of third user who is listening to the conversation between already existing 2 users?
Copy link to clipboard
Copied
Haven't tried using an RTMFP stream, but in the case of RTMP, you need to grab the netstream's soundtransform object, make the changes, and then apply the changed soundtransform back to the netstream
var st:SoundTransform = ns.soundTransform;
st.volume = 0;
ns.soundTransform = st;
Find more inspiration, events, and resources on the new Adobe Community
Explore Now