[Red5] How see stop of a flv ?

John Grden neoriley at gmail.com
Wed Jul 5 11:10:33 EDT 2006


What rev of Red5 are you running?  Have you updated lately?  Just wondering
because I just ran ofla_demo.swf against the lates rev in the trunk and I
received all status:

(9021) OFLA_PROMO.flv:
(9199) NetStream.onStatus:
  clientid = 1
  description = Playing and resetting OFLA_PROMO.flv.
  details = OFLA_PROMO.flv
  code = NetStream.Play.Reset
  level = status


(9200) NetStream.onStatus:
  clientid = 1
  description = Started playing OFLA_PROMO.flv.
  details = OFLA_PROMO.flv
  code = NetStream.Play.Start
  level = status


(9424) metaData:
  datasize = 472
  audiosize = 0
  videosize = 3946633
  filesize = 3947118
  metadatadate = Fri Oct 21 08:39:08 GMT-0400 2005

  metadatacreator = Manitu Group FLV MetaData Injector 2
  creationdate = unknown
  audiodatarate = 0
  lastkeyframetimestamp = 333.416
  lasttimestamp = 333.416
  canSeekToEnd = true
  videocodecid = 4
  framerate = 12
  videodatarate = 150
  height = 240
  width = 320
  duration = 333.416


(10048) NetStream.onStatus:
  level = status
  code = NetStream.Buffer.Full


(11149) NetStream.onStatus:
  clientid = 1
  description =
  details = OFLA_PROMO.flv
  code = NetStream.Play.Stop
  level = status


JG

On 7/5/06, Moreno Balcon <neno76 at gmail.com> wrote:
>
> 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
> >
> >
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>


-- 
John Grden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060705/f1524103/attachment-0001.htm


More information about the Red5 mailing list