Solved

FLVPlayback skin problem

Posted on 2010-09-08
2
656 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adobe Flash Player - PPAPI plugin 6 619
Online Course Not Responding 3 93
CTools CSS Cache Error 1 102
Drupal - Language Translations 1 99
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

815 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

8 Experts available now in Live!

Get 1:1 Help Now