Skip to main content
Participant
March 4, 2011
Question

I can't get accurate playheadTime in flvplayback component.

  • March 4, 2011
  • 1 reply
  • 896 views

I use flvplayback to play a 20 seconds flv video, but I can't get accurate playheadTime no matter how to set the attributes.

Here is my as3 codes.

import mx.video.*;
my_FLVPlybk.playheadUpdateInterval=10;
//my_FLVPlybk.seekBarInterval=100;
//FLVPlayback.seekBarScrubTolerance=100;
function the_play(eventObject:Object)
{
ta.text = my_FLVPlybk.playheadTime;     //  ta is a textarea.
}
function the_end(eventObject:Object)
{
ta.text = "video over";
}
my_FLVPlybk.addEventListener("playheadUpdate", the_play);
my_FLVPlybk.addEventListener("complete", the_end);

I drag seekbar to between 0 and 8 seconds, it always obliges to 8.333 .

This topic has been closed for replies.

1 reply

somascope
Inspiring
March 4, 2011

It looks to me liek you are using an old FlvPlayBack componenet - from AS2. You should probably post in the AS2 forum. Otherwise, if you have Flash CS3/4/5, I'd recommend you use a newer component.

The "mx.video" code (the package) is what indicates this is a several-years-old component. With AS3, you should be working with the "fl.video" package.