Macromedia Flash Server - Mute audio?

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > October 2005 > Mute audio?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mute audio?
Lars Nymand

2005-10-28, 5:46 pm

Hello

I have followed this introduction:
http://www.oreilly.com/catalog/progflashcs/

and it works just fine, but how do I make 2 button there can 1.) mute the
sound from the other user and 2.) mute the sound coming from me (if I don't
want the others to hear me)

var ns = new NetStream(nc);
mc.video.attachAudio(nc);
mc.video.attachVideo(ns);
mc.video.muted = false;
ns.play(id);
mc.ns = ns;

hope to hear from you

Lars Nymand

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Naicu Octavian

2005-10-28, 5:46 pm

To mute their sound:
ns.recieveAudio(false)
=20
To mute your sound, you just don't send it anymore:
ns.attachAudio(null)
=20
=20

=20


Lars Nymand <LarsNymand-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
Hello

I have followed this introduction:
http://www.oreilly.com/catalog/progflashcs/

and it works just fine, but how do I make 2 button there can 1.) mute the
sound from the other user and 2.) mute the sound coming from me (if I don=
't
want the others to hear me)

var ns =3D new NetStream(nc);
mc.video.attachAudio(nc);
mc.video.attachVideo(ns);
mc.video.muted =3D false;
ns.play(id);
mc.ns =3D ns;

hope to hear from you

Lars Nymand

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=09
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click. =20

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Lars Nymand

2005-10-28, 5:46 pm

I can't get it to work...

Forgoth to say that >>>var mc = _root["profilvideo"];<<<

But this don't work:
_root["profilvideo"].ns.recieveAudio(false);

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Naicu Octavian
Sent: 29. oktober 2005 00:00
To: FlashComm Mailing List
Subject: Re: [FlashComm] Mute audio?

To mute their sound:
ns.recieveAudio(false)

To mute your sound, you just don't send it anymore:
ns.attachAudio(null)






Lars Nymand <LarsNymand-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
Hello

I have followed this introduction:
http://www.oreilly.com/catalog/progflashcs/

and it works just fine, but how do I make 2 button there can 1.) mute the
sound from the other user and 2.) mute the sound coming from me (if I don't
want the others to hear me)

var ns = new NetStream(nc);
mc.video.attachAudio(nc);
mc.video.attachVideo(ns);
mc.video.muted = false;
ns.play(id);
mc.ns = ns;

hope to hear from you

Lars Nymand

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Jim Duber

2005-10-28, 5:46 pm

Looks like a typo. Try:

_root["profilvideo"].ns.receiveAudio(false);

As in " I before E except after C". ;^)

Best,

Jim

On Oct 28, 2005, at 3:20 PM, Lars Nymand wrote:

> I can't get it to work...
>
> Forgoth to say that >>>var mc = _root["profilvideo"];<<<
>
> But this don't work:
> _root["profilvideo"].ns.recieveAudio(false);
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Naicu
> Octavian
> Sent: 29. oktober 2005 00:00
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Mute audio?
>
> To mute their sound:
> ns.recieveAudio(false)
>
> To mute your sound, you just don't send it anymore:
> ns.attachAudio(null)
>
>
>
>
>
>
> Lars Nymand <LarsNymand-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
> Hello
>
> I have followed this introduction:
> http://www.oreilly.com/catalog/progflashcs/
>
> and it works just fine, but how do I make 2 button there can 1.) mute
> the
> sound from the other user and 2.) mute the sound coming from me (if I
> don't
> want the others to hear me)
>
> var ns = new NetStream(nc);
> mc.video.attachAudio(nc);
> mc.video.attachVideo(ns);
> mc.video.muted = false;
> ns.play(id);
> mc.ns = ns;
>
> hope to hear from you
>
> Lars Nymand
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
> ---------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Lars Nymand

2005-10-28, 8:45 pm

Cool there it was...

How do i check if its running or not?

Ex:
If (_root["profilvideo"].ns.receiveAudio() == false) {

}

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Jim Duber
Sent: 29. oktober 2005 00:32
To: FlashComm Mailing List
Subject: Re: [FlashComm] Mute audio?

Looks like a typo. Try:

_root["profilvideo"].ns.receiveAudio(false);

As in " I before E except after C". ;^)

Best,

Jim

On Oct 28, 2005, at 3:20 PM, Lars Nymand wrote:

> I can't get it to work...
>
> Forgoth to say that >>>var mc = _root["profilvideo"];<<<
>
> But this don't work:
> _root["profilvideo"].ns.recieveAudio(false);
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Naicu
> Octavian
> Sent: 29. oktober 2005 00:00
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Mute audio?
>
> To mute their sound:
> ns.recieveAudio(false)
>
> To mute your sound, you just don't send it anymore:
> ns.attachAudio(null)
>
>
>
>
>
>
> Lars Nymand <LarsNymand-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
> Hello
>
> I have followed this introduction:
> http://www.oreilly.com/catalog/progflashcs/
>
> and it works just fine, but how do I make 2 button there can 1.) mute
> the sound from the other user and 2.) mute the sound coming from me
> (if I don't want the others to hear me)
>
> var ns = new NetStream(nc);
> mc.video.attachAudio(nc);
> mc.video.attachVideo(ns);
> mc.video.muted = false;
> ns.play(id);
> mc.ns = ns;
>
> hope to hear from you
>
> Lars Nymand
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
> ---------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Jim Duber

2005-10-28, 8:45 pm

Don't have the docs handy, but your example looks like a good start.

If you can't get that working, you could always set a flag along with
the state of the audio at the same time and then check that. Something
like:

//mute the audio and set the flag
_root["profilvideo"].ns.receiveAudio(false);
audioMuted = true;

//and later, check it...
if (audioMuted) {
//do whatever
}

HTH,

Jim


On Oct 28, 2005, at 3:55 PM, Lars Nymand wrote:

> Cool there it was...
>
> How do i check if its running or not?
>
> Ex:
> If (_root["profilvideo"].ns.receiveAudio() == false) {
>
> }
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Jim Duber
> Sent: 29. oktober 2005 00:32
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Mute audio?
>
> Looks like a typo. Try:
>
> _root["profilvideo"].ns.receiveAudio(false);
>
> As in " I before E except after C". ;^)
>
> Best,
>
> Jim
>
> On Oct 28, 2005, at 3:20 PM, Lars Nymand wrote:
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com