Okay, I'm totally stumped by this issue:
I just created a simple Flash file that is programmed to play a little animation and then play a video when the user clicks (video uses FLVPlayBack and and RTMP connection). Everything works fine when I export it from the Flash IDE, and in fact the video streams from a remote CDN server right to my desk top.
So, then I go to test the SWF on our remote web site server with a simple embed into HTML using SWFObject.?I use a standard block of code to do this that I'm currently using for a different video player I also made that works just fine--I just swap the SWF file name and adjust a few details.
Yet, when I go to test the file, the SWF does nothing!?The simple animation does not play, and the video does not load.?What could be causing this??My first thought was that it was something in the SWFObject method, and I've played around with it trying all kind of things I think should work.?I'm not sure what it is.
Here is the simple code in the flash file:
import fl.video.FLVPlayback;
import flash.display.Sprite;
var videoPath:String = ''rtmp://fstream.imediasee.com/basic/user/preview_video'';
init();
// init
function init() {
player.autoPlay = true;
bPlay.addEventListener(MouseEvent.CLICK, beginPlay);
anim.addEventListener(MouseEvent.CLICK, beginPlay);
}
// begin play
function beginPlay(e:Event) {
player.source = videoPath;
bPlay.visible = false;
anim.visible?= false;
}
Flash Video File STUMP!FYI, to secure my client, I have altered the URLs above--so they do not actually work from here.
Also, again, I have another test file with a different video player that has a very similar HTML/SWFObject file in the same directory, making a RTMP connection to the same remote server--and it works.
Flash Video File STUMP!No one??Total STUMP?!
I have not had trouble with uploading flash video (.html and .swf) files to my remote server until about 3 weeks ago. I have a .mov made up of stills, graphics, and short video clips with a sound track cued to the video. It plays perfectly on my computers (iMac and G5 with CS4). It will not play on the website. What is playing there now is a video with sound that I made in SlideShowPro for Flash that sort of works, but is not syncing well, which is why I had the .mov made by my sound engineer friend.
Others seem to be having this same problem. What's up? Anyone?
Problem was due to htaccess restrictions applied to files in host directory!
No comments:
Post a Comment