Hi,
Im sorry can you highlight what you think is an error. I might be
being dumb, but I cannot see any errors in the log.
The onBWDone one is us making a call back from server to client to
tell it the bandwidth check is done, this is just a dummy call at the
moment mirror calls which many flv players rely on. The flv players
dont wait for connected status, instead they wait for that onBWDone
method call. Strange I know. I guess we should make that configurable.
- Luke
On 7/13/06, thereal punk <[EMAIL PROTECTED]> wrote:
> sure sorry,
>
> here's precisely what i did :
>
>
> 1 - i first created a subdirectory in the red5/webapps directory
> called "parrotapp"
> for my java "project" and followed all the steps described in the red5
> readme files
> so in that folder i have a "WEB-INF" direcotry in which are the "src"
> and "classes" directories and the configuration files
>
> 2 - i edited the build.xml file that is in the root of the red5
> directory and added
> --------------------------------------------------------------------------------------------------------------------------
> <javac
> sourcepath=""
>
> srcdir="${src.dir}/../webapps/parrotapp/WEB-INF/src"
>
> destdir="${src.dir}/../webapps/parrotapp/WEB-INF/classes"
> debug="${debug.state}"
> classpathref="webapps.classpath"
> fork="yes"
> verbose="no"
> nowarn="yes"
> executable="${java.home}/../bin/javac"
> target="${java.target_version}">
>
> </javac>
> --------------------------------------------------------------------------------------------------------------------------
> 3 - i opened a command prompt in the red5 directory and typed "ant server"
>
> 4 - i created a new flash project in flexbuilder with a class called
> "ParrotClient" with "almost" the same code as in the red5 readme files
> ...
> --------------------------------------------------------------------------------------------------------------------------
> package {
> import flash.display.Sprite;
> import flash.events.NetStatusEvent;
> import flash.net.NetConnection;
> import flash.net.ObjectEncoding;
> import flash.net.Responder;
>
> public class ParrotClient extends Sprite
> {
> private var nc:NetConnection;
>
> public function ParrotClient() {
> nc = new NetConnection();
> nc.objectEncoding = ObjectEncoding.AMF0;
> nc.addEventListener(NetStatusEvent.NET_STATUS,
> onNetStatus);
> nc.connect("rtmp://localhost/parrotapp");
> nc.call("repeat", new Responder(onRepeat, onError),
> "hello world!");
> }
>
> private function onNetStatus(e:NetStatusEvent):void {
> trace("onNetStatus() invoked");
> for(var i:String in e.info) {
> trace(i + " : " + e.info[i]);
> }
> }
>
> private function onRepeat(o:Object):void {
> trace("onRepeat() invoked");
> trace("the result is : " + o);
> }
>
> private function onError(o:Object):void {
> trace("onError() invoked");
> trace("the result is : " + o);
> }
> }
> }
> --------------------------------------------------------------------------------------------------------------------------
>
> here's what is displayed in the "ant server" window :
>
> --------------------------------------------------------------------------------------------------------------------------
> [java] [WARN] 182203 AnonymousIoService-2-1:(
> org.red5.server.net.rtmp.RTMP
> MinaIoHandler.warn ) Is tcp delay enabled: false
> [java] [DEBUG] 182235 AnonymousIoService-2-2:(
> org.red5.server.Server.debug
> ) Check host and path: localhost/parrotapp
> [java] [DEBUG] 182235 AnonymousIoService-2-2:(
> org.red5.server.CoreHandler.
> debug ) Connect to core handler ?
> [java] [DEBUG] 182250 AnonymousIoService-2-2:(
> org.red5.server.adapter.Appl
> icationAdapter.debug ) appConnect: RTMPMinaConnection to 127.0.0.1 (in: 3427,
> ou
> t: 3073)
> [java] [DEBUG] 182250 AnonymousIoService-2-2:(
> org.red5.server.adapter.Appl
> icationAdapter.debug ) appJoin: Client: 0 >> [EMAIL PROTECTED] Depth = 1,
> Path =
> '/default', Name = 'parrotapp']
> --------------------------------------------------------------------------------------------------------------------------
>
> and here's what was displayed in the flexbuilder "console" view (sorry
> some stuff is in french)
>
> --------------------------------------------------------------------------------------------------------------------------
>
> [SWF] F:\data\flash\red5\parotclient\as3\bin\ParrotClient-debug.swf -
> 1 504 bytes after decompression
> onNetStatus() invoked
> level : status
> application : null
> code : NetConnection.Connect.Success
> description : Connection succeeded.
> Error #2044: AsyncErrorEvent non pris en charge : text=Error #2095:
> flash.net.NetConnection n'a pas été en mesure d'appeler l'élément de
> rappel onBWDone. error=ReferenceError: Error #1069: La propriété
> onBWDone est introuvable sur flash.net.NetConnection et il n'existe
> pas de valeur par défaut.
> at
> ParrotClient$iinit()[F:\data\flash\red5\parotclient\as3\src\ParrotClient.as:15]
>
> --------------------------------------------------------------------------------------------------------------------------
>
> 5 - so i decided to use AS2 instead of AS3 , with this code :
>
> --------------------------------------------------------------------------------------------------------------------------
> var nc:NetConnection = new NetConnection();
> nc.connect("rtmp://localhost/parrotapp");
>
> nc.onResult = function (o:Object) : Void {
> trace("onResult() invoked");
> trace("the result is : " + o);
> };
> nc.onStatus = function (o:Object) : Void {
> trace("onStatus() invoked");
>
> for(var i in o) {
> trace(i + " : " + o[i]);
> }
>
> };
> nc.call("repeat", "hello, red5 how are you?");
> --------------------------------------------------------------------------------------------------------------------------
>
> here's what is displayed in the flash IDE "trace" panel (looks like
> nc.call() isn't doing anything)
>
> --------------------------------------------------------------------------------------------------------------------------
>
> onStatus() invoked
> application : null
> description : Connection succeeded.
> code : NetConnection.Connect.Success
> level : status
>
> --------------------------------------------------------------------------------------------------------------------------
>
> here's what is displayed in the "ant server" window :
>
> --------------------------------------------------------------------------------------------------------------------------
> [java] [WARN] 31593 AnonymousIoService-2-1:(
> org.red5.server.net.rtmp.RTMPM
> inaIoHandler.warn ) Is tcp delay enabled: false
> [java] [DEBUG] 31625 AnonymousIoService-2-2:(
> org.red5.server.Server.debug
> ) Check host and path: localhost/parrotapp
> [java] [DEBUG] 31625 AnonymousIoService-2-2:(
> org.red5.server.CoreHandler.d
> ebug ) Connect to core handler ?
> [java] [DEBUG] 31625 AnonymousIoService-2-2:(
> org.red5.server.adapter.Appli
> cationAdapter.debug ) appConnect: RTMPMinaConnection to 127.0.0.1 (in: 3319,
> out
> : 3073)
> [java] [DEBUG] 31625 AnonymousIoService-2-2:(
> org.red5.server.adapter.Appli
> cationAdapter.debug ) appJoin: Client: 0 >> [EMAIL PROTECTED] Depth = 1, Path
> = '
> /default', Name = 'parrotapp']
> --------------------------------------------------------------------------------------------------------------------------
>
> it's quite weird because these files all "work" (in flexbuilder &
> flash) with the red5 version i installed via the windows installer,
> ... i must be doing something wrong for sure and i'd like to get
> started with red5 :)
>
> thanks for the help, cheers
>
>
> On 7/13/06, Joachim Bauch <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > thereal punk wrote:
> > > first of all i'm new to red5 and i'd like to say "thaks for the great
> > > work".
> > >
> > > i downloaded the red5 windows installer the other day read of couple
> > > of articles here an there and started to give it a try. after having
> > > slightly changed the code that is showed in the README files included
> > > with red5, it was working as expected.
> > >
> > > last night, i decided to get this one :
> > > http://svn1.cvsdude.com/osflash/red5/java/server/trunk.
> > > i'm using exactly the same code but i's not wokring anymore : i get a
> > > strange error from flex builder each time i try to connect to
> > > "rtmp://localhost/myapp" ... has anyone had this problem too? how
> > > could i resolve it
> >
> > Well, describing the error really would help us to find out what the
> > actual problem is ;) Also any errors / stack traces that are logged by
> > Red5 will help.
> >
> > 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
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org