|
Home > Archive > Macromedia Flash Server > September 2005 > Seek me the current length...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Seek me the current length...
|
|
| Simon Lord 2005-09-30, 2:45 am |
| If I have a stream coming into a flash client, what would be the best
way to get it's *current* length? What I mean is, the stream's end
is unknown, and unless the stream is playing I can't make out how
much of it has been received by the client.
Ideally I just want to return either:
1) A value that represents the total amount of data, in bytes, which
has been recieved by the client so far...
.... or ...
2) A time value that lets me know the total number mins which has so
far been streamed to the client.
For example, why is it that if I let a stream play for 2 minutes I
can get the exact time duration if I seek to the last frame (while
the client is still receiving that same stream) but I *CANNOT* get
that same value whilst being parked on frame 1?
Makes no sense, or (hopefully) I missed something.
Would the answer be in the Bible?
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Billy Bateman 2005-09-30, 2:45 am |
| You can get length of file via the meta data functions
in_ns.onMetaData = function(metadata){
_root.filelength = metadata.duration;
}
in_ns.time
You should be able to get the current time loaded and frame at via this.
I have a FCS player and non FCS Flv player that use these things to get
video length andto know during playback where video is currently at, so
the length of video played so far. Basically we make the progress bar
and such stuff off of this info.
Hope this helps!
-Billy
Simon Lord wrote:
> If I have a stream coming into a flash client, what would be the best
> way to get it's *current* length? What I mean is, the stream's end
> is unknown, and unless the stream is playing I can't make out how
> much of it has been received by the client.
>
> Ideally I just want to return either:
>
> 1) A value that represents the total amount of data, in bytes, which
> has been recieved by the client so far...
>
> ... or ...
>
> 2) A time value that lets me know the total number mins which has so
> far been streamed to the client.
>
> For example, why is it that if I let a stream play for 2 minutes I
> can get the exact time duration if I seek to the last frame (while
> the client is still receiving that same stream) but I *CANNOT* get
> that same value whilst being parked on frame 1?
>
> Makes no sense, or (hopefully) I missed something.
>
> Would the answer be in the Bible?
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|