8/2/2010 2:36:47 AM
Title:
Player problem
Hi to all. i have designed flv player for video display in flex 3.. i added play stop forward and rewind full screen in my player. now my problem is forward did not work in some system.is it any flash player version problem? please help me... its working well in some system.what can i do? i used 10.1 version in flash player...
Davis
Points: 780
Posts:0
8/2/2010 4:49:39 AM
forward works only when the video fie is downloaded upto the mark you are forwarding it to. So its actually no the system problem but, the systems where the video is downloaded already in browser cache will work . You need to let the video download first to the point you want it to forward or let it completely download first.
8/2/2010 5:35:51 AM
clear the browser cache of the computer where its working and try to forward it quickly when it gets loaded, it wont work because the video is completely loaded . you will be able to forward it once the video is loaded completely. Because its progressive loading which means we ca see the part of video up-to the loaded part.
8/2/2010 6:02:59 AM
hey i was start the forward option once video loaded completely only .problem is once i clicked the forward option in video , it forwarded again again .it will not stop once it completed. how can i recover it. please help me.
8/2/2010 6:36:21 AM
whats the code that you are using to forward the video, I think you might be using some loop there .
8/2/2010 8:58:25 PM
private var num_interval:Number;
private var num_interval1:Number;
private function playlistControlsHandler_forward(event:MouseEvent):void
{
if(this.myVideoDisplay.playing == true)
this.myVideoDisplay.pause();
clearInterval(num_interval);
num_interval=setInterval(forwardVideo,800);
}
private function forwardVideo():void
{
if(this.myVideoDisplay.playheadTime + 1 <= this.myVideoDisplay.totalTime)
{
this.myVideoDisplay.playheadTime += 0.1;
}
}
warrior the above code only i used to forward the video..
Rayan
Points: 700
Posts:0
8/2/2010 9:28:33 PM
trace the current playheadtime and the total time either of one would be giving you wrong information. Most probably your playheadTime would be 0 or -1, or some fixed value. which means video is trying to seek a position which is not loaded yet. When video becomes visible it does not mean its loaded completely , it just shows up as much its loaded rest keeps on loading in the background.
You should check the loadedbytes and totalbytes of video to see if its completely loaded
trace(this.myVideoDisplay.playheadTime+" -- "+this.myVideoDisplay.totalTime)