There are some errors that come up time and time again when working with Jeroen Wijering's Flash Video Player. Here's how to troubleshoot them. I'll keep adding to the list as time permits. Click the images to see a larger view.
Problem 1: Player does not appear at all. In the example below, the only thing showing up is the link that is supposed to be filled with the player at runtime.
then it is probably because the code for the swfobject functions cannot be found. This is most likely caused by not including a link to the swfobject script in the head of the HTML page.
Not including the code means that the object and embed tags for the player cannot be written into the HTML document at runtime.
Another possible cause is that there is an error in the path to the player SWF file, usually named "player.swf".
In this case the object embed code will be written into the HTML, but the player file is not where the code expects it to be, so it doesn't display.
Problem 2: Player appears but nothing happens when Play button is clicked. Player stays black and progress bar does not advance.
Jeroen Wijering explains this issue quite well on his site:
- Note that the Flash plugin checks for image and MP3 files relative from the HTML page and for FLV files relative from the SWF file!
Second, a playlist should always reside on the same server as the SWF file, due to security restrictions of the Flash Player. This can be solved if you own the domain on which the mediafiles reside. You then have to put a crossdomain.xml file in the root webfolder of that server. In this file, you can specifically allow sites to load data. An example is the crossdomain file from Youtube.
"/media/playlist3.xml" instead of "media/playlist3.xml"
The player appears but is black - there is no posterframe, since posterframes are specified in the playlist. Nothing happens when the PLAY button is clicked.
Player on left has:
Player on right has:
Sometimes the last few tags in the playlist file may get overwritten. Try validating your XML in Dreamweaver or whatever you prefer to use.
In the example below there are several missing closing tags at the bottom:
<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Magnetic Resonance Safety</title>
Problem 3: Player appears and starts playing but stops after a second. Video is being streamed from Red5 server.