[Red5] ns.time, bytesLoaded, bytesTotal values undefined.

Charles Palen palen1c at gmail.com
Thu Mar 20 20:09:48 PST 2008


Looking through the thread, I don't think the question about
ns.BytesLoadedand BytesTotal was answered.  In my experience with
using that, you will
achieve different results with different browsers.  In IE you will get
undefined or zero for BytesTotal until the file is completely loaded, then
the correct value will be returned.

In firefox ns.BytesLoaded and BytesTotal was working for me reguardless of
the loaded percentage.

I have read that as mentioned, people will send the values of
ns.BytesTotalalong with metadata or an xml file..etc.

I hope this helps.

On Tue, Mar 18, 2008 at 5:16 PM, Thijs Triemstra | Collab <lists at collab.nl>
wrote:

> No its not, cause it's using RTMP instead of HTTP.
>
> On Mar 18, 2008, at 7:11 PM, Vinay K. Perneti wrote:
>
> > What about this then?
> >
> > nc.connect(any.red5.uri); // say
> > rtmp://localhost/oflaDemo
> >
> > ns.play("IronMan.flv");
> >
> > Isn't that progressive?
> >
> > Thanks,
> > -Vinay
> > --- Dan Rossi <spam at electroteque.org> wrote:
> >
> >> progressive download is
> >>
> >> nc.connect(null);
> >>
> >> ns.play("http://localhost/fil.flv");
> >>
> >>
> >> something like thatr. Why do you need bytestotal for
> >> ? There are
> >> methods to extract the filesize and duration off the
> >> server
> >> somewhere.  Im pretty sure the duration comes
> >> through with the
> >> metadata not sure on server stream.
> >>
> >> On 18/03/2008, at 4:38 PM, Vinay K. Perneti wrote:
> >>
> >>> Hi Dan,
> >>>
> >>> I just tested by requesting a single file from the
> >>> server(progressive download). The ns.time value
> >> seems
> >>> to be correct, however, the bytesLoaded and
> >> bytesTotal
> >>> show 0. The testing is being done on localhost,
> >> that
> >>> being said, shouldn't the bytesTotal still show a
> >>> value greater than 0?
> >>>
> >>> Thanks,
> >>> -Vinay
> >>>
> >>>
> >>>
> >>> --- Dan Rossi <spam at electroteque.org> wrote:
> >>>
> >>>> only possible in progressive download
> >>>>
> >>>> On 18/03/2008, at 3:46 PM, Vinay K. Perneti
> >> wrote:
> >>>>
> >>>>> Hi All,
> >>>>>
> >>>>> When i print the ns.time, ns.bytesLoaded and
> >>>>> ns.bytesTotal, all the values show up as
> >> undefined
> >>>> in
> >>>>> the output console at the client. The client is
> >>>>> playing a playlist stream from the server.
> >>>>>
> >>>>> Any idea why these values are undefined?
> >>>>>
> >>>>> Thanks,
> >>>>> -Vinay
> >>>>>
> >>>>>
> >>>>>    Chat on a cool, new interface. No download
> >>>> required. Go to
> >>>>
> >> http://in.messenger.yahoo.com/webmessengerpromo.php
> >>>>>
> >>>>> _______________________________________________
> >>>>> 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
> >>>>
> >>>
> >>>
> >>>
> >>>     Unlimited freedom, unlimited storage. Get it
> >> now, on
> >>
> > http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
> >>>
> >>> _______________________________________________
> >>> 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
> >>
> >
> >
> >
> >      Download prohibited? No problem. CHAT from any browser, without
> > download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/
> >
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080321/757e0bbb/attachment-0001.html 


More information about the Red5 mailing list