PDA

View Full Version : FLV and totalTime


Ledge
01-09-2006, 07:49 PM
Ok, I am having a weird problem with getting the "totalTime" for FLV's for use with Flash 7. With some of my FLV's the "totalTime" shows up and for some the "totalTime" doesn't show up at all. Add to that when the "totalTime" doesn't show up the video will play in Flash Player 7 like it should, but when the "totalTime" is present the video doesn't play at all.

Could this come from me editing in Flash 8? Could there be a problem with the FLV files? I even tracked down a copy of MX 2004 here at work and published from there to see the same results as before.

I am using the MediaDisplay component from Flash. At first I thought that maybe the version of MediaDisplay that Flash 8 publishes is actually incompatable with the Flash 7 player, but my experiment publishing from MX2004, gave me that answer.

Here is the code that I am using for the player:



init = function(video){
mediaStreamer.setMedia(video, "FLV");
}
init("400kbps_160kbps_24fps_2kf.flv");



There was a lot more to it than this, but I got so frustrated with it I just gave up and stripped a bunch of my code out to bring it back down to the basics. I do have a trace statement that gets executed to see what the totaltime is:

trace(mediaStreamer.totalTime);

Any Ideas???

Ledge
01-11-2006, 09:56 PM
any ideas as to why this would happen??

trace(mediaStreamer.totalTime);

just returns "0"