[Red5] How to know the number of people connected to a flux ?
Hello, what method, propertie do i need to use to know the number of people connected to a flux ? I need to have this information in a flash client. Thanks, Julien. ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Help to convert appli from FMS to RED5
Hello, I'm trying to convert my very small app from Flash Media Server to Red5 (0.62). So i'm lost with java. If somebody can help me to convert the code, this my main.asc : application.replace = function(sChaineInitiale, sSeparateurARemplacer, sSeparateurAInserer) { return (sChaineInitiale.split(sSeparateurARemplacer)).join(sSeparateurAInserer); } application.onAppStart = function() { this.compteur = 0; this.listeClients = {}; this.listeNoms = ; this.maitreConnected = false; } application.onConnect = function(clientObj, role) { this.acceptConnection(clientObj); clientObj.nom = role; this.listeClients[role] = clientObj; if (role != maitre) { this.compteur += 1; this.listeNoms = this.listeNoms + role + ,; } else { this.maitreConnected = true; } if (this.maitreConnected) { this.listeClients[maitre].call(setCounter, null, this.compteur); this.listeClients[maitre].call(setUtilisateurs, null, this.listeNoms); } clientObj.changePrenom = function(ancienPrenom, nouveauPrenom) { application.listeClients[clientObj.nom] = null; delete application.listeClients[clientObj.nom]; clientObj.nom = nouveauPrenom; application.listeClients[nouveauPrenom] = clientObj; application.listeNoms = application.replace(application.listeNoms, ancienPrenom, nouveauPrenom); if (application.maitreConnected) { application.listeClients[maitre].call(setUtilisateurs, null, application.listeNoms); } } clientObj.maj = function() { for(var i in application.listeClients) { application.listeClients[i].call(setMaj, null); } } } application.onDisconnect = function(clientObj) { if (clientObj.nom != maitre) { this.compteur -= 1; this.listeNoms = application.replace(this.listeNoms, clientObj.nom+,, ); if (this.maitreConnected) { this.listeClients[maitre].call(setCounter, null, this.compteur); this.listeClients[maitre].call(setUtilisateurs, null, this.listeNoms); } } else { this.maitreConnected = false; } this.listeClients[clientObj.nom] = null; delete this.listeClients[clientObj.nom]; } ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com main.asc Description: Binary data ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Stop and start Red5 server
Hello, Could you tell me how to start the Red5 server ? Do i need to use ant server or ./red5.sh ? So, how to stop the server ? Thanks, Julien. ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] onSync returns only sync type
not sure cause i'm writing this as i just woke up ... inside the same loopvar o:Object = changeList[i];? maybe , maybe not :)On 9/15/06, Stanisław Fiedor [EMAIL PROTECTED] wrote: ok thanks, it works, but... what is with the oldValue and value parameter? - Original Message - From: julien castelain To: Red5@osflash.org Sent: Friday, September 15, 2006 2:05 PM Subject: Re: [Red5] onSync returns only sync type i thinkyou'll findit like this var changeList:Array = event.changeList; for(var i:int=0; i changeList.length; i++) { var code:String = changeList[i].code; } On 9/15/06, Stanisław Fiedor [EMAIL PROTECTED] wrote: Hi!I'm still transfering my project into AS3 and now if got the problem withthat in AS3 SOonSync returns only the type sync and no 'clear' 'change'. How do you manage with it?stfurca___Red5 mailing listRed5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___Red5 mailing listRed5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___Red5 mailing listRed5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Another SharedObject question :)
problem solvedOn 9/11/06, julien castelain [EMAIL PROTECTED] wrote: hi list, I've been trying to figure out how remote SharedObjects work with red5 and flex. I've never worked with FCS or FMS before so maybe i'm not doing things the right way here. However, i' read the red5 docs and the flex docs so on the server side here is how i create the shared object (in the appStart method) Boolean create = createSharedObject(scope, my_so); if(!create) throw new Error(Failed to create shared object.); sharedObject = getSharedObject(scope, my_so); i think that's ok because log.debug(shared object : + sharedObject); displays shared object : SharedObject : my_so but maybe i'm wrong ... then i tried setting some propertiesin the shared object in the appConnect method sharedObject.beginUpdate(); sharedObject.setAttribute(messages, new String[] {a, b}); sharedObject.endUpdate(); when i lauch the red5 server everything seems to be ok, at least there aren't any errors, as for the client side, this is the way i create my sharedObject : sharedObject = SharedObject.getRemote(videobook_so, rtmp://localhost/MyApp);sharedObject.addEventListener(FCStatusEvent.CONNECTED, onConnected);sharedObject.addEventListener( SyncEvent.SYNC, onSync); sharedObject.connect(MyNetConnection); i think that's right too because the onSync method gets called, but it seems that their is no data or properties in the shared object. the weird thing is that if i trythis on the client side: sharedObject.setProperty(messages, [yo, man, this, should work]); the onSync method gets called once again and this time tells me that the messages property of the shared object exist. Maybe this isn't the place to ask such questions, but - 1 -am i doing something wrong? 2 - can we create the shared object on the server side with data in it like i tried to? 3 - is there a simple example somewhere? i looked in the samples but i only see AS2 code thanks in advance for the help ciao ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] Another SharedObject question :)
That was already done John, but to be honnest I'd never been using remote shared objects before and didn't read much about it (i'll remember that for next time),the red5 code looked like thisin appStart ...Boolean create = createSharedObject(scope, my_so, true);if(!create) throw new Error(Failed to create shared object.);sharedObject = getSharedObject(scope, my_so, true); sharedObject.addSharedObjectListener(new AppSharedObjectListener());messages.add(Welcome to the tests, be our guests);sharedObject.beginUpdate();sharedObject.setAttribute(messages, messages); sharedObject.endUpdate();...I was assuming that by doing this their would be something in the shared object's data when a client would connect..the shared object created in flash was done like this so = SharedObject.getRemote(my_so, rtmp://localhost/app);So it's seemed, that each first time that the swf was launched (after compiling), when the onSync method was called, the so's data was 'cleared' ... the only thing that made changes to the so's data was done on the client side... all i did was so = SharedObject.getRemote(my_so, rtmp://localhost/app, true, false);and now as soon as i connect to the app, i can get the stuff that was expecting for.I'm still not 100% sure of myself as usual, but this stuff seems to be working as expected ... now i'll try to stream some video :)On 9/12/06, John Grden [EMAIL PROTECTED] wrote: was it setting flex's net connection to work with amf0? On 9/12/06, julien castelain [EMAIL PROTECTED] wrote: problem solved On 9/11/06, julien castelain [EMAIL PROTECTED] wrote: hi list, I've been trying to figure out how remote SharedObjects work with red5 and flex. I've never worked with FCS or FMS before so maybe i'm not doing things the right way here. However, i' read the red5 docs and the flex docs so on the server side here is how i create the shared object (in the appStart method) Boolean create = createSharedObject(scope, my_so); if(!create) throw new Error(Failed to create shared object.); sharedObject = getSharedObject(scope, my_so); i think that's ok because log.debug(shared object : + sharedObject); displays shared object : SharedObject : my_so but maybe i'm wrong ... then i tried setting some propertiesin the shared object in the appConnect method sharedObject.beginUpdate(); sharedObject.setAttribute(messages, new String[] {a, b}); sharedObject.endUpdate(); when i lauch the red5 server everything seems to be ok, at least there aren't any errors, as for the client side, this is the way i create my sharedObject : sharedObject = SharedObject.getRemote(videobook_so, rtmp://localhost/MyApp);sharedObject.addEventListener(FCStatusEvent.CONNECTED, onConnected);sharedObject.addEventListener( SyncEvent.SYNC, onSync); sharedObject.connect(MyNetConnection); i think that's right too because the onSync method gets called, but it seems that their is no data or properties in the shared object. the weird thing is that if i trythis on the client side: sharedObject.setProperty(messages, [yo, man, this, should work]); the onSync method gets called once again and this time tells me that the messages property of the shared object exist. Maybe this isn't the place to ask such questions, but - 1 -am i doing something wrong? 2 - can we create the shared object on the server side with data in it like i tried to? 3 - is there a simple example somewhere? i looked in the samples but i only see AS2 code thanks in advance for the help ciao ___Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org -- [JPG] ___Red5 mailing listRed5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
[Red5] Another SharedObject question :)
hi list, I've been trying to figure out how remote SharedObjects work with red5 and flex. I've never worked with FCS or FMS before so maybe i'm not doing things the right way here. However, i' read the red5 docs and the flex docs so on the server side here is how i create the shared object (in the appStart method) Boolean create = createSharedObject(scope, my_so); if(!create) throw new Error(Failed to create shared object.); sharedObject = getSharedObject(scope, my_so); i think that's ok because log.debug(shared object : + sharedObject); displays shared object : SharedObject : my_so but maybe i'm wrong ... then i tried setting some propertiesin the shared object in the appConnect method sharedObject.beginUpdate(); sharedObject.setAttribute(messages, new String[] {a, b}); sharedObject.endUpdate(); when i lauch the red5 server everything seems to be ok, at least there aren't any errors, as for the client side, this is the way i create my sharedObject : sharedObject = SharedObject.getRemote(videobook_so, rtmp://localhost/MyApp);sharedObject.addEventListener(FCStatusEvent.CONNECTED, onConnected);sharedObject.addEventListener( SyncEvent.SYNC, onSync); sharedObject.connect(MyNetConnection); i think that's right too because the onSync method gets called, but it seems that their is no data or properties in the shared object. the weird thing is that if i trythis on the client side: sharedObject.setProperty(messages, [yo, man, this, should work]); the onSync method gets called once again and this time tells me that the messages property of the shared object exist. Maybe this isn't the place to ask such questions, but - 1 -am i doing something wrong? 2 - can we create the shared object on the server side with data in it like i tried to? 3 - is there a simple example somewhere? i looked in the samples but i only see AS2 code thanks in advance for the help ciao ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] a problem about sharedobject with flex2
hi guys,setProperty works for me ciaoOn 9/10/06, Dan Rossi [EMAIL PROTECTED] wrote: Ke Boqi wrote: now I found if I use the SharedObject.setProperty to upate data, it works well on my flex app. like this: so.data[message] = somevalue; // dosen't work on the flex2 app so.setProperty(message, somevalue); //works wellcheers mate ill try that instead much easier to notify a change to a sharedobject than making a call to all clients. However im pretty sure itried setProperty also.___Red5 mailing listRed5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org
Re: [Red5] mp3s on trunk
I am away from the office until Wednesday 16th August. Regards, Julien Lirochon Cyanide 1 rue Noël Pons 92000 Nanterre France Tel : +33 (0)8.72.52.31.61 Fax : +33 (0)1.70.24.76.34 http://www.cyanide-studio.com ___ Red5 mailing list Red5@osflash.org http://osflash.org/mailman/listinfo/red5_osflash.org