Flowplayer: rename swf files

The problem

In Flowplayer documentation, flowplayer is initialized like that:

flowplayer("player", "../flowplayer-3.1.5.swf"); 

If you rename flowplayer-3.1.5.swf to flowplayer.swf, you will try:

flowplayer("player", "../flowplayer.swf"); 

And you will get:

300: Player initialization failed: TypeError: Error #1009

The solution

Precise the location of the controls:

flowplayer("player", "../flowplayer.swf", {
    plugins: {
        controls: {
            url: '../flowplayer.controls.swf'
        }
    }
});

If you don't need the controls:

flowplayer("player", "../flowplayer.swf", {
    plugins: {
        controls: null
    }
});

Reference

 

Feedback