Free Videos about Mastering Views

How To: Embedding media using SWF Tools module

Play Video
Movie link (right-click to download)
Problem with this video? Contact me

Yep, we're living in a media rich world (just in case you didn't notice the video on this web page <wink>). In fact, what's the second most popular search engine? Is it Bing? Nope, it's YouTube of all things (last I heard).

So, all you really need to know, is how to bring your Drupal site up to the media rich standards of the new web and activate some media modules. Personally, I've used a number of them, and I'm quite comfortable digging around with Javascript and jQuery, however, there's something to be said for the easy route.

I'm using the Flowplayer module on this site now (as of posting date), and previously, I used jQuery Media.

It wasn't until recently, where I was avoiding an upgrade to one of my podcast sites, that I decided to try out SWF Tools module. I had tried it out in the past, but found it lacking. BUT, not these days.

For audio, I like using the 1pixelout player, and seeing support for Flowplayer too, "forced" me to try it out.

While it really depends on preference, for whether to use Flowplayer proper or SWF Tools, it sure is nice to have all media managed by one module.

The trick is understanding how to get it working - and that's what this video will help you with!

Hi Matt,

Thanks for another great video. I learn a lot from you, so do keep up the great job. I am Drupal addicted!

And please do Ubercart very soon.

Thank you

Jesper

Hello,
I'm having trouble. I installed swftools and am following the process in your video, which is great btw. BUT, when I go to reports>swftools status, I get this: SWFObject 2 - JavaScript Missing
Download the required supporting file and upload it to sites/all/modules/swftools/shared/swfobject2/swfobject.js.
When I try to put the download there, I get to the shared file and there is no swfobject2/swfobject.js to go to.

I've tried everything I can think of and I can't seem to get any farther. Can anyone assist me?
Thanks.
 Rachel

When you extract swfobject_2_2.zip, the extracted folder will be swfobject.
This extracted folder already have what it needs includes swfobject.js.
Rename the folder (swfobject to swfobject2).
Upload the folder to sites/all/modules/swftools/shared/.

My method:
Upload swf_2_2.zip using cpanel's file manager and extract it to sites/all/modules/swftools/shared/. Then rename swfobject to swfobject2.
(It failed - don't know what's wrong. When refresh page swftools status, it still display "missing".)

My alternate method:
Extract swfobject_2_2.zip.
Open ftp client (I'm using Filezilla). Browse public_html/...../shared/.
Create a new folder name swfobject2.
Upload all subfolder and files in swfobject2.

Just make sure the result should be:
sites/all/modules/swftools/shared/swfobject2/expressInstall.swf
sites/all/modules/swftools/shared/swfobject2/index.html
sites/all/modules/swftools/shared/swfobject2/index_dynamic.html
sites/all/modules/swftools/shared/swfobject2/swfobject.js
sites/all/modules/swftools/shared/swfobject2/test.swf
sites/all/modules/swftools/shared/swfobject2/src/expressInstall.as
sites/all/modules/swftools/shared/swfobject2/src/expressInstall.fla
 sites/all/modules/swftools/shared/swfobject2/src/swfobject.js

Hye again..

For those who still having this kinda problem, why don't you try not to use the latest player version from flowplayer official site. Get the flowplayer module from drupal.org.

Just remembered that I can't make it right when using the flowplayer-3.1.4 (current version from flowplayer.org) but everything is doing great when I'm using flowplayer-3.0.7 (current version from drupal.org/project/flowplayer).

Just change your current swftools settings to match the latest version of flowplayer. Go to admin->settings->swftools->flowplayer3. Change player file to match the latest available version of Flowplayer. Also do this for the RTMP plugin if you use streaming.

When I looked in the code it isn't finding the file using the file_exists() function. I have a multisite setup that may be messing it up.

Well-documented, useful, clear. Very good tutorial. And your English is clear ! (understand : none English people like me can even understand you very well)

Thanks for the great video! I learned a lot, but I've been having a difficult time understanding how to create a continuous playlist from multiple mp3-containing nodes. I've created a view to filter the mp3 paths from the appropriate fields in my nodes, but outputting as a "SWF Tools - playlist" gives me 150 1pixelout players, despite having chosen flowplayer as my playlist player.

Using views or not, any idea how to fill a flowplayer playlist from many nodes?

Keep up the great work!

I think Flowplayer has built in support for playlists. You wouldn't really want to have a view render your list of possible media elements. Try this link

http://flowplayer.org/plugins/javascript/playlist.html

I've content type: playlist, which contain node reference to content type:mp3.
I've created a view, that gives me a list of the files I want.
I was hoping that using the format of "SWF Tools - playlist" I get a flowplayer (or JW Media Player 4), but instead I get a whole bunch of 1pixelout's. Flowplayer is set as my playlist player, but the view is obviously not generating a playlist.
Is there any solution?
 thanks!

First, off: I just discovered your site and I must say, WELL DONE! Your video's are very informative and I really appreciate the time you have taken to offer this resource.

Second: I'm attempting to get an .swf file to be my header image in the Acquia_slate theme. I can get it placed with SWFTools, that's not the issue. The issue occurs when the preface_sidebar (which normally sits over-top the header image) is obscured by the flash object- no matter how much I play with the z-index or wmode.

I was curious if you have any insight? For reference, the site is docjam.zon.ca. Right now, you can see the overlay working as intended because the background image is a .jpg.

Thanks for your time and feel free to pass on advice if you feel it is outside your scope.

Cheers

I've spent the last 5-6 hours driving myself insane. The use of the swftools status reports in the video solved all but one of my problems, it was amazing, thank you sincerely.

Help. I followed this video to the 't' but there is one pasrt that is kind of kispped. Perhaps my basic understanding of Drupal is not enough butt.... how do I get the video to show on a page? What do I have to add to teh page. I cannot seem to add SWF tools as a field in views...

Any help greatly appreciated.
Thanks,
 Andy

Hi, I got this to work but there seems to be a bit you missed out. Once you have done everything in your tutorial (minus the views part) you can get your flash video to display on a page by following the instructions at http://drupal.org/node/494294

In particular you omitted the following instruction
Go to:
Administer/Site Configuration/ Entry Form
Then add the input format with the new filter option "SWF Tools Filter.". Once that is done you can paste the following code on any page and your chosen player will play the file.

Apart from that thanks so much for this tutorial I could NEVER have done it without you!

Cheers, Andy

I do not have this "Entry Form" option....

...input format.

I used CCK to create a custom video upload content, where I upload mp4's and they are played with flowplayer 3. Everything works fine (after putting in the control bar plugin). However, after migrating my site, the files can no longer be found (even though they are in the correct place according to the file handling). Newly uploaded files play just fine (and end up in the same place as the old files). Somehow the original paths need to be altered. Any suggestions? I would hate to think I can't ever migrate my sites without breaking all the video.

I'm trying to play video clip with Flowplayer in Lightbox2. Flowplayer shows up in Lightbox but the file is not getting played.

Hi, You mentioned that you stream your videos from Amazon S3. This is obviously the best option as it takes a load of work off the Drupal server. Can you give any pointers as to how to do this. Do we have to include the RTMP plug-in and also how to change the path in swftools to accept videos from another server?

Thanks,
 Andy