14 sec delay after stopping and restarting a video

Hi,

I am having an issue with playing a video. I get the video to play and stop when I press the appropriate buttons. When I press play after having stoped the video however, the picture jumps 14 seconds ahead before the video starts playing.

I have a label that displays the player media time and I see this count the 14 seconds before the picture starts moving (i.e. video playing).

Here is an example.

1) press play (player time = 0 seconds)

1a) player plays the video as expected.

2) press stop (player time = 10 seconds)

2a) player displays the last frame played as if paused.

3) press play (player time starts counting from 10 to 24 seconds, the picture moves to a still frame of the video at 24 seconds and remains 'paused' for want of a better word).

4) at 24 seconds (10sec + 14sec) the picture and the counter are playing/counting in sync.

I use player.stop() when the stop button is pressed. I have tried several alternatives to restart the video including player.start(), player.realize() and player.prefetch() but always get the same 14sec delay.

Should I be stopping and starting the video differently?

Thanks.

[1206 byte] By [2dabblea] at [2007-10-3 7:24:10]
# 1

I have since changed to using a processor instead of a player. Initially I was greeted with a black panel where my video once played (when using the player)

I installed fobs4jmf and added the codec (new JavaDecoder()) to the videoTrack.

The video again played but with very poor quality. The video was often blurry, had pixelated colouring and stuttered. A lot of errors were spat out, mainly:

Codec Found: 1

Codec opened...W=720 H=576

[mpeg1video @6B427574]ac-tex damaged at 36 9

[mpeg1video @6B427574]Warnning MVs not available

[mpeg1video @6B427574]ac-tex damaged at ....

[mpeg1video @6B427574]concealing 1620 DC, 1620 AC, 1620 MV errors

I'm using jdk 1.4 on an XP box. I read that fobs4jmf has issues with jdk 1.5 so have gone back to 1.4 with no luck.

(Oh, when stopping and restarting the video - no 14 sec delay anymore. I still get it with the player but not the processor...)

Any suggestions greatly apppreciated.

Thanks.

Message was edited by:

2dabble

2dabblea at 2007-7-15 2:22:29 > top of Java-index,Security,Cryptography...