PDA

View Full Version : FLVPlayback: flv starts twice


backslash007
10-26-2007, 01:07 PM
i've made a video player similar to youtube with flvplayback and AS3.

the path to the flv-file on the FMS and the cuepoints are loaded with a xml-file. actually everything works correctly except this:

when the player starts, it first loads the flv and then starts with playing. but the video "starts twice", first you hear the sound for a very short time, then immediatly after the video starts correctly.

why this??? when the flv from is not streaming from the server but is local saved, the player starts correctly.


my_player.load("path to flv_movie");

read the cuepoints...

my_player.play();




i tried after my_player.play(); to set the buffer time with player.bufferTime = 3;
then the first video after the player has started is playing correctly, but if i click on my playlist to load a second video, this one starts twice again!

i have no idea whats wrong!! has anybody some advices for me??

panel
10-26-2007, 02:53 PM
If you are using FLVPlayback component try to set autoPlay property to false


my_player.autoPlay = false;

backslash007
10-26-2007, 02:58 PM
hello

i tried this, but with no success...

i've observated that when the video starts the first time the seekbar handle is not at the beginning position, but a little bit on the right. when the video starts the second time, it jumps at the beginning position and the video starts correcty...

panel
10-26-2007, 03:01 PM
try use source property insted of load method

my_player.source = "path to flv_movie";

backslash007
10-26-2007, 04:04 PM
no success :-(

could it be a problem of the streaming server??

panel
10-27-2007, 07:55 PM
No idea sorry
try to play diffrent files or from diferent server tis way you'll at least will know more about problem

Zillosophy
11-06-2007, 07:36 PM
I'm having the same issues. Progressively loading a FLV and occasionally it will play give me one or a combo of 5 things. And given that there are 5 things it's more likely that at least one of them happens.


Start playing audio without even showing that the video is loaded (controls are disabled)
Plays the video with audio echo or double the volume if the tracks match.
Plays the audio even after the clip has been REMOVED_FROM_STAGE and after I had made a call to myFLVPlayback.stop() and even SoundMixer.stopAll()
Then at some points it also acts jerky as if buffering, though the whole clip has been downloaded.
Also something a bit more common is that after you revisit a page that you have already watched the video on and the playback stalls, sometimes up to 2 minutes.


this.video_mc.addEventListener(Event.REMOVED_FROM_ STAGE, flvpRFSHandler);
this.video_mc.flvp.source = ref;
this.video_mc.flvp.playWhenEnoughDownloaded();

function flvpRFSHandler(input:Event){
this.video_mc.flvp.autoPlay = false;
this.video_mc.flvp.stop();
SoundMixer.stopAll();
}