Page 1 of 1

Use Video and Mute Audio/Mic

Posted: 05 Mar 2010, 18:36
by tgraupmann
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

Posted: 05 Mar 2010, 18:40
by tgraupmann
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

Posted: 06 Mar 2010, 08:56
by Bax
When sending a live cast (AVCastManager.publishLiveCast method), set the enableMicrophone parameter to false.

Posted: 06 Mar 2010, 17:31
by tgraupmann
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)

Posted: 06 Mar 2010, 18:59
by tgraupmann
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?

Posted: 06 Mar 2010, 19:48
by tgraupmann
It seems like that worked. Without compiling anything.

So is there a trick for reading config settings to store in my global var variables?

Posted: 14 Mar 2010, 19:10
by tgraupmann
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

Posted: 20 May 2010, 20:59
by Zanpher
I am sorry :) But I have to say, cute kid!