I know there are several modules for video and flash in particular, but I only need to embed a single movie on a single page. Can I do it without loading and learning new modules?

I'm a Flash beginner, but I made a little Flash movie and the Flash app created a SWF file (and an html file and a js file to go with it). If I put the three files on my server, and put a link to the html on my Drupal page, the user can click it and see the movie on a separate page. But, I'd like to display the movie right on the page itself.

Is this doable without extra modules? If I should use a module, what is likely to be the easiest? I don't need to support other formats, and I will be doing this rarely, and my users won't be uploading videos - only the site administrator will do this. Thanks!

Comments

B747’s picture

If you embed the file as you would in a normal HTML page (using the script) tag, then as long as you select the 'Full HTML' input filter when you create the page it should up.

Note that it is not safe for members of the public to use the Full HTML format so if you need visitors to embed SWFs then you will need to find another solution.

steve02476’s picture

Thanks!

I set the page node as Full HTML, and then I snipped the following from the html file that the Flash app created:

	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="mymovie" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="mymovie.swf" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="mymovie.swf" loop="false" quality="high" bgcolor="#ffffff" width="550" height="400" name="mymovie" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>

and I put it into the body of the node.

At first it didn't work, but then I realized I had to put the full path in like <param name="movie" value="/path/to/mymovie.swf" /> section. Now when I visit the page in Drupal the movie is displayed and it plays automatically.

What is the easiest way to add play, pause, stop buttons, etc?

samwich’s picture

Look at the SWF Tools module for embedding swfs onto your pages.

as far as play, pause and stop buttons, that depends on what kind of flash file you are trying to embed. If you are trying to embed a flash video, you will need a FLV player SWFthat includes those buttons. (Note - the swftools module will provide media players to display your video files if this is what you are trying to accomplish).

B747’s picture

Hmm. I would say probably the Flash program itself. I've looked at a few of Drupal's many video modules but I can't see one that claims to take swf video and add a GUI for controlling it.

steve02476’s picture

In retrospect it probably was not right for me to ask for help with how to control a Flash file on a Drupal page - since I don't have the foggiest idea how to do it on a simple html page either. Once I get that figured out (with help from whatever Flash resources I can scrounge up), I'll see if I can apply whatever method works with simple HTML to my Drupal page. Thanks a ton, everyone!

bloke_zero’s picture

That is actually exactly what swf tools - http://drupal.org/project/swftools does do. You need to set up one of the players like jwplayer but after that you can use simple markup to embed flv files and they will get a set of controls added.