Solved

FLVPlayback skin problem

Posted on 2010-09-08
2
649 Views
Last Modified: 2012-05-10
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/hutchnew"

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;
}

Open in new window

0
Comment
Question by:bassNsnare
2 Comments
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 500 total points
ID: 33631244
I know this can be done VERY easily with SWFTools (http://drupal.org/project/swftools), and FlowPlayer. If you pay the $95 for a commercial flow player license then you can replace the flowplayer logo with your own (or whatever other changes you might want).

Or if you must do it yourself, it doesn't look like you are embeding the SWF in the standard SWFObject way, see http://code.google.com/p/swfobject/wiki/documentation

As far as I can tell, this is really a flash problem and has virtually nothing to do with Drupal.
0
 

Author Comment

by:bassNsnare
ID: 33640330
It was purely a flash problem. The .fla we were using was built for Flash Player 8, with AS2. Built a new one with AS3, and the problem disappeared.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now