views:

761

answers:

1

Hello, I have been developing a custom flash player in flex for use in a web site. I am running into a strange issue and was wondering if I could get some help. I use an hslider component for video navigation. The problem I am running into is when I drag the slider to another point in the video it is not precisely setting the video play head time. I have videoPlayer.playHeadTime = slider.value. For example slider.value = 72.11143423 when I set videoPlayer.playHeadTime to that value I get something like this videoPlayer.playHeadTime=76.3413222. A completely different number and it varies each time you navigate at how far off it is. All of my code seems to be correct, and every example online seems to follow the same way of doing this. I am not sure why flash is behind the scenes rounding this number but its causing choppy navigation and several other issues with other functions I have for the player. Any help or advice would greatly be appreciated.

Thank you

+1  A: 

It's because you can only jump to rendered key-frames (the play head will always jump to the closest one). You can adjust the frequency of those when you encode the video.

Theo.T
How do you adjust that frequency
It depends of the software you use to encode, but the setting is called 'key frame placement' or something similar. The more keyframes, the bigger the file is going to be, JSYK.
Theo.T
I am using On2 Filx engine to encode.
Sorry don't have this installed but you may figure out in the export settings.
Theo.T