Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Can't mute a NetStream

Guest
Apr 25, 2011 Apr 25, 2011

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?

2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 26, 2011 Apr 26, 2011

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 26, 2011 Apr 26, 2011
LATEST

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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines