bassNsnare
asked on
FLVPlayback skin problem
I'm trying to display a flash video on a Drupal page.
The video plays fine, but the controls disappear for no apparent reason after only a few seconds. As you can see from the code below, I've turned off skinAutoHide. I've gone as far as to place a copy of my skin .swf in every directory it could possibly be looking for it.
The $img_path variable = "/sites/all/themes/hutchne w"
I know I could use a different player, or even YouTube, but I'd like to make sure there's no 3rd party branding anywhere on the video.
Problem can be seen here: http://67.199.57.93/documents/7700-9700-video
The video plays fine, but the controls disappear for no apparent reason after only a few seconds. As you can see from the code below, I've turned off skinAutoHide. I've gone as far as to place a copy of my skin .swf in every directory it could possibly be looking for it.
The $img_path variable = "/sites/all/themes/hutchne
I know I could use a different player, or even YouTube, but I'd like to make sure there's no 3rd party branding anywhere on the video.
Problem can be seen here: http://67.199.57.93/documents/7700-9700-video
JAVASCRIPT EMBED:
<script type="text/javascript">
var so = new SWFObject("<?php print $img_path; ?>/flash/videos/Martin_2.swf", "content_flash", "340", "320", "9", "#ffffff");
so.addVariable("vidFile", "Hutchens.flv");
so.addVariable("vidPath", "<?php print $img_path; ?>/flash/videos");
so.addParam("wmode", "window");
so.write("content_flash");
</script>
ACTIONSCRIPT:
import mx.video.FLVPlayback;
stop();
//default to the first video if none is specified
if (!vidFile) vidFile='no video selected';
else{
var moviePlayer:FLVPlayback;
//now we set what file we want to load.
moviePlayer.contentPath = vidPath + '/' + vidFile;
//then we can set a couple other options like these
moviePlayer.autoPlay = true;
moviePlayer.autoRewind = false;
moviePlayer.skin = vidPath + "/SteelExternalAll.swf";
moviePlayer.skinAutoHide = false;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER