[Red5] How see stop of a flv ?

Moreno Balcon neno76 at gmail.com
Wed Jul 5 11:00:19 EDT 2006


Hi,
The problem's is that i receive only  NetStream.Buffer.Full and
NetStream.Buffer.Empty events.

The code is simple.


 var my_conn:NetConnection = new NetConnection();
my_conn.onStatus = function(info){
 var ris = "";
 for (var i in info) ris += i+":"+info[i]+" ";
 trace("> NetConnection: "+ris);
}
my_conn.connect("rtmp://10.0.1.98:2935/oflaDemo");
var my_stream:NetStream = new NetStream(my_conn);
my_stream.onStatus = function(info){
 var ris = "";
 for (var i in info) ris += i+":"+info[i]+" ";
 trace("> NetStream: "+ris);
}
my_stream.onPlayStatus = function(info){
 var ris = "";
 for (var i in info) ris += i+":"+info[i]+" ";
 trace("> onPlayStatus: "+ris);
}
my_stream.onMetaData = function(info){
 var ris = "";
 for (var i in info) ris += i+":"+info[i]+" ";
 trace("> onMetaData: "+ris);
}

my_video.attachVideo(my_stream);
my_stream.play("prova");




2006/7/5, John Grden <neoriley at gmail.com>:

> Have you received NetStream.Play.Stop?
>
> one thing that makes this easy is, put xray in your app.  Then, in your
> onStatus, just xray's trace to see what the info object's properties are:
>
> private function onStatus(evtObj:Object):Void
>     {
>         if(debug) _global.tt("Stream.onStatus", evtObj.code);
>
>
> _global.tt() is Xray's trace method.  Just send arguements - any complex
> object will be fully traced out for you.
>
>
> hth,
>
> jg
>
>  On 7/5/06, Moreno Balcon <neno76 at gmail.com> wrote:
>
> >  Hi,
>  I' m just try the last version from the repository, i have made a simple
> flash that call a video in red5, but ... how i can see
> the end of a video ? I receive only NetStream.Buffer.Full and
> NetStream.Buffer.Empty as stream events...
>
> Thanks,
>  Moreno
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
>
> --
>
> John Grden
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060705/5d7f91da/attachment.htm


More information about the Red5 mailing list