Video plays locally but not on the web
August 26th, 2010
This is a gotcha to watch out for if you post videos on a website.
The problem
I created a video in Camtasia and output it as a Flash file to put on a website. I chose FLV format in Camtasia, but the file that runs initially is a .swf file. This displays a little animation and shows the first frame with a big play button on top. It all worked fine locally on my PC but when I uploaded it to the website it just displayed as a black box with no initial animation. This suggested a problem with the .swf file and, sure enough, when I tried loading the .swf file directly in the browser all I got was a grey page (that's gray for anyone Googling for that spelling).
The debugging
The strange thing was that I'd previously added another video elsewhere on the site and it worked fine. It wasn't anything to do with the size of the .flv file because the working video had a larger .flv file, and anyway I was convinced the problem was the .swf file.
My immediate thought was that it was a permissions problem. So I blew the permissions wide open but it wasn't that. I then thought it could be a security issue but telling the browser to trust the website didn't help either.
I'd actually added this within the help authoring tool Madcap Flare, and this took me down all sorts of wrong paths. And, eventually, paths were the problem. I fell back to more Googling and eventually came across a Techsmith forum post by "Showland" that had the solution.
The solution
Showland's forum comment said:
Hi. I had this problem as well, where the compiled file would play locally but not over the Web. I discovered that it didn't like a super long path to the files. Once I stored them with a shorter path, the screencast played fine over the Web. Hope this helps!
Eureka!
The URL for my .swf file was something like this:
http://www.my.website.xyz/documentation/authoringDocs/videos/Flare-adding-glossary-popups-FLV/adding-glossary-popups_controller.swf
So I moved the file up the hierarchy and gave it a simple name:
http://www.my.website.xyz/documentation/authoringDocs/videos/test.swf
and, hey presto, it worked just fine.
I don't know what the character limit is, but it's worth bearing this in mind if you work with videos on websites.
Potentially similar posts
- Gotchas with running a Perl script as a cron job – August 2010
- Making 16:9 videos display correctly in Windows Media Player – December 2009
- TextFlow fails to live up to its demo video – November 2008
- Migrating a hosted WordPress site to your local PC – October 2008
- Making complex ideas easy to understand using short and simple videos – October 2008