?
Solved

FLVPlayback skin problem

Posted on 2010-09-08
2
Medium Priority
?
682 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.
Suggested Courses

801 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