lastingforhours
Programmer
ive come across a weird problem that is a little hard to explain...
i made a video player that has rewind and fast forward buttons. both buttons wont behave the way i want them too. i simply want them to skip ahead or back .5 seconds from the current position. here is my code for those two buttons.
now, whats happening is when i rewind or fast forward the video, they totally ignore the first 25 seconds of the video and another portion of time near the end of the video. the rewind function gets stuck when it tries to rewind beyond 25 seconds into the video and both buttons skip about 7 to 10 seconds instead of half of a second.
i also have conditions setup to make it skip to the beginning or end if you seek beyond the beginning or end of the video but that isnt contributing to my problem.
also, the file isnt corrupted, i really doubt the video is causing the problem.
so, does anyone have any suggestions? or even any resources online that could help. thanks!
--
Matt Milburn, Wave Motion Studios
matt@wavemotionstudios.com
i made a video player that has rewind and fast forward buttons. both buttons wont behave the way i want them too. i simply want them to skip ahead or back .5 seconds from the current position. here is my code for those two buttons.
Code:
//fast forwarding
var seekPos = stream.time + .5;
stream.seek(seekPos);
//rewinding
var seekPos = stream.time - .5;
stream.seek(seekPos);
now, whats happening is when i rewind or fast forward the video, they totally ignore the first 25 seconds of the video and another portion of time near the end of the video. the rewind function gets stuck when it tries to rewind beyond 25 seconds into the video and both buttons skip about 7 to 10 seconds instead of half of a second.
i also have conditions setup to make it skip to the beginning or end if you seek beyond the beginning or end of the video but that isnt contributing to my problem.
also, the file isnt corrupted, i really doubt the video is causing the problem.
so, does anyone have any suggestions? or even any resources online that could help. thanks!
--
Matt Milburn, Wave Motion Studios
matt@wavemotionstudios.com