Use Video and Mute Audio/Mic

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

tgraupmann
Posts: 29
Joined: 03 Mar 2010, 17:42

Use Video and Mute Audio/Mic

Postby tgraupmann » 05 Mar 2010, 18:36

I'm using the SmartVideoConference example.

Is there a server variable to mute the audio playing and recording?

I'd like to enable video with RedBox, but skip sending/receiving the audio portion.

I want to mute all users.

Thanks,

~Tim
tgraupmann
Posts: 29
Joined: 03 Mar 2010, 17:42

Postby tgraupmann » 05 Mar 2010, 18:40

One hack I see is to alter the mime types on the audio formats. That way sound couldn't be received.

Code: Select all

Server/RedBox/conf/web.xml
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 06 Mar 2010, 08:56

When sending a live cast (AVCastManager.publishLiveCast method), set the enableMicrophone parameter to false.
Paolo Bax
The SmartFoxServer Team
tgraupmann
Posts: 29
Joined: 03 Mar 2010, 17:42

Postby tgraupmann » 06 Mar 2010, 17:31

Thanks. Ideally it would solve a boolean configuration parameter "enableMicrophone" in the redbox config and use that in all the AVCastManager.publishLiveCast calls.

Code: Select all

Flash API/RedBoxClient_AS3/examples/SmartVideoConference/src/SmartVideoConference.as:   var myStream:NetStream = avCastMan.publishLiveCast(true, true)
tgraupmann
Posts: 29
Joined: 03 Mar 2010, 17:42

Postby tgraupmann » 06 Mar 2010, 18:59

http://areebworld.com/sfs/SFS_PRO_1.6.6/Flash%20API/RedBoxClient_AS2/docs/html/com_smartfoxserver_redbox_AVCastManager.html#publishLiveCast

Do I need to recompile the flash after making changes to the source?

Or is the action script linked externally?

If necessary, are there any docs for compiling SmartFox?

Code: Select all

Examples\RedBox\SmartVideoConference\src\config.xml


Code: Select all

<SmartFoxClient>
    <ip>192.168.1.4</ip>
    <port>9339</port>
    <zone>SmartVideoConference</zone>
    <debug>true</debug>
    <smartConnect>false</smartConnect>
    <useVideo>true</useVideo>
    <useMicrophone>false</useMicrophone>
</SmartFoxClient>


Code: Select all

Examples\RedBox\SmartVideoConference\src\SmartVideoConference.as


Code: Select all

...

private var smartFox:SmartFoxClient;
private var red5IpAddress:String;
private var avCastMan:AVCastManager;
private var inited:Boolean;
private var createRoomWin:TitleWindow
private var componentsReady:Boolean
private var useVideo:Boolean
private var useMicrophone:Boolean

...

/**
* Join video conference
*/
public function joinConference():void
{
   // Set from configs
   useVideo = true
   useMicrophone = false

   // Retrieve live casts already available
   for each (var liveCast:LiveCast in avCastMan.getAvailableCasts())
   {
      // Subscribe live cast and add to video container
      addLiveCast(liveCast)
   }
   
   // Publish my live cast
   var myStream:NetStream = avCastMan.publishLiveCast(useVideo, useMicrophone)
   
   if (myStream != null)
   {
      // Attach camera output
      myVCItem.attachCamera(Camera.getCamera())
      
      bt_joinConf.enabled = false
      bt_leaveConf.enabled = true
   }
}


Any hints on how to populate useVideo and useMicrophone Booleans from the config settings?
tgraupmann
Posts: 29
Joined: 03 Mar 2010, 17:42

Postby tgraupmann » 06 Mar 2010, 19:48

It seems like that worked. Without compiling anything.

So is there a trick for reading config settings to store in my global var variables?
tgraupmann
Posts: 29
Joined: 03 Mar 2010, 17:42

Postby tgraupmann » 14 Mar 2010, 19:10

I think I still need to compile the action script into the swf

Code: Select all

Examples\RedBox\SmartVideoConference\bin\SmartVideoConference.swf
.

For now I'll need to mute the mic like this.

Right click and select settings. Image

On the mic tab, turn the mic volume all the way down - Image

My mom is always hitting the mute button:

Right-click sound in the taskbar and select "recording devices":
Image

Click the properties on your microphone:
Image

Make sure you are not muted:
Image
Zanpher
Posts: 96
Joined: 05 Oct 2009, 23:15

Postby Zanpher » 20 May 2010, 20:59

I am sorry :) But I have to say, cute kid!

Return to “RedBox”

Who is online

Users browsing this forum: No registered users and 19 guests