Avatar

Level 2
hello i have too a bug for webcam + audio





I have video but I haven't sound , why?

see my source codes :



<?xml version="1.0" encoding="utf-8" ?>

<!-- Ce programme va me servir à integrer les pods
à ma page web -->

<mx:Application layout="absolute"

xmlns:mx="
http://www.adobe.com/2006/mxml"

xmlns:rtc="AfcsNameSpace"

>

<mx:Script>

<![CDATA[

import mx.controls.Alert;



import com.adobe.rtc.events.SessionEvent;

import com.adobe.rtc.messaging.UserRoles;

import com.adobe.rtc.collaboration.AudioPublisher; //
AudioPublisher me sert pour la gestion du microphone

//import com.adobe.rtc.collaboration; // me sert pour la
gestion du microphone

//import com.adobe.rtc.clientManagers;// me sert pour la
gestion du microphone

import com.adobe.rtc.collaboration.AudioSubscriber ;





import mx.controls.Label;

import mx.core.UIComponent; // me sert pour la gestion du
microphone

import flash.events.EventDispatcher// me sert pour la
gestion du microphone



</mx:Script>





---end mx :script



<!-- Container Gestionnaire de session (le bon enfin
trouvé) -->

<rtc:ConnectSessionContainer id="sessionManager"

width="500" height="400" backgroundColor="#FFFFFF"

authenticator="{identificator}" autoLogin="false"

roomURL="
http://connectnow.acrobat.com/lionceau01/essai"

synchronizationChange="onSynchro( event )"



/>



<!-- PODS -->

<mx:VBox width="60%" height="100%"
horizontalAlign="center">

<rtc:WebCamera id="webcam" width="100%" height="100%"





/>



</mx:VBox>









<mx:VBox width="40%" height="100%" right="0">

<mx:Button label="Déconnexion" click="logout()"
/>

<rtc:AudioPublisher id="audio"

height="0"

useEchoSuppression="true"

gain="100"



/>











<mx:Button id="btnTalk"

label="{btnTalk.selected ? 'Stop Talking':'Start Talking'}"

toggle="true"

click="{btnTalk.selected ? audio.publish():audio.close()}"

/>



<!-- only listen to the subscribers we have selected
-->







<!-- what do ? how do ? i have many bug -->













<!--adel <mx:Button label="activer le son"
click="_creating(true)" />

<mx:Button label="+ volume" click="gain(2)" />

<mx:Button label="- volume" click="gain(-2)" />

-->

<rtc:Note id="notes" width="100%" height="40%" />

<rtc:FileShare id="fileManager" width="100%" height="20%"
/>



<!-- ligne à finir <rtc:SharedWhiteBoard
id="essai" width="50%" height="50%" /> -->

<rtc:SimpleChat id="chat" width="100%" height="40%" />


</mx:VBox>

















Many thanks for your help ,





Lionceau,