I have a problem of playing FLV file which id embed in my swf when i place it on server, swf plays correctly but not FLV
any solution will be highly appreciated.
thanks for all replys, its works in All browesers other than IE 6 now ,
i will paste the code here for the flv to chk .
var videopath:String;
var flvtime:String;
var vidPlaying:Boolean = false;
var audio_sound:Sound = new Sound(vflvPlayback);
videopath = "/public/ANS/test/flash/Price_video.flv";
flvtime = ":00/:17";
time_txt.text = flvtime;
endClip_mc.moreabout_btn.enabled = false;
endClip_mc.send_btn.enabled = false;
endClip_mc.replay_btn.enabled = false;
import mx.video.*;
vflvPlayback.contentPath = videopath;
vflvPlayback.stopButton = my_stopbttn;
vflvPlayback.playPauseButton = my_playbttn;
vflvPlayback.seekBar = my_scrubber;
vflvPlayback.playheadUpdateInterval = 17;
var vid_time:Number;
var listenerObject:Object = new Object();
listenerObject.playheadUpdate = function(eventObject:Object):Void {
if (eventObject.playheadTime == undefined || vflvPlayback.totalTime == undefined || vflvPlayback.totalTime == 0) {
return;
}
vid_time = Math.floor(eventObject.playheadTime);
vid_mins = Math.floor(vid_time/60);
vid_secs = Math.floor(vid_time%60);
if (vid_secs<10) {
vid_secs = "0"+vid_secs;
}
if (vid_mins<10) {
vid_mins = "0"+vid_mins;
}
time_txt.text = ":"+vid_secs+"/:17";
var percentPlayed:Number = eventObject.playheadTime/vflvPlayback.totalTime*100;
if (percentPlayed>=2) {
this.placeHolder._visible = false;
}
vflvPlayback.complete = function(eventObject:Object):Void {
vidComplete();
};
bar_mc._xscale = (vflvPlayback.totalTime == undefined || isNaN(percentPlayed)) ? 0 : percentPlayed;
};
vflvPlayback.addEventListener("playheadUpdate",listenerObject);
function vidComplete():Void {
this.attachMovie("gfxFlash","flashFade",1000,{_x:-2, _y:10.5});
}