ok, let's see if i'm able to put together a simple explanation.
The videoconference demo has a weird behaviuor due to it being developed for a very early version of Red5. Things changed since them and the changes needed to make it work aren't trivial. I worked on it earlier back when rc1 was released, and it was useful to understand how red5 works and learn AS (i was a clomplete noob on that), but when it was time to do a working seious app i started it from scratch instead of patching that demo. So it's not as simple as "send me the code to fix it", but i can give you some pointers. Just take them carefully because i'm talking out of my head and can be missremembering something. -You should notify the arrival of new clients in the appconnect or roomconnect/join method serverside. -Existence of already connected users can be done through the getStreams method called from client when connecting to server. -It is supposed to be fixed in trunk svn version but if you're using rc1 or rc2 you will have to get rid of not-unregistered streams in the server using the code i pasted yesterday. -you should have a listener for the close stream event in your clients so they will clear the video container when other's user stream stops. -if you want audio you should de-comment a few lines in connector.as. -There is something like "doubleCheckTime" that is called in an interval in the group.as class that you should eliminate, it causes some containers to be cleared without any logic reason. There were some more things, but that should keep you busy for a while. Cheers Carlos On 3/9/07, Jean-Philippe DELAVALLADE <[EMAIL PROTECTED]> wrote:
Hi Joachim, sorry i've tried but no way, i don't know java and have a lot of problem... i've trying to use videoconference.fla and fitcDemo and that's run : you can see here : http://jeanphilippe.no-ip.biz/videoconf/ but the problem is ghost when user quit application without deconnect can you show me what i must change in code or can you do the change in files (as and appli) and send me at : [EMAIL PROTECTED] thanks a lot jp Le 9 mars 07 à 12:09, Joachim Bauch a écrit : > Hi, > > Jean-Philippe DELAVALLADE schrieb: >> can you show me an example please (serverside code and client code >> in flash) ? > > Red5: > public void appLeave(IClient client, IScope app) { > ServiceUtils.invokeOnAllConnections(app, "clientLeft", new > Object[]{client.getId()}); > super.appLeave(client, app); > } > > Flash: > class MyConnection extends NetConnection { > function clientLeft(id: String) { > trace("Client left: " + id); > } > } > > You can check out the videoconference example, which uses this > technique > to set a id on each client by calling "setId". > > Joachim > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
-- ------------------------------------------------------------------- "Nos gusta los domingos ir al parque a pinchar los globos de los niños para verlos llorar" .- Eskorbuto
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
