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

al intentar ver canal de tv muestra este mensaje: Player initialization failed: TypeError: Error #1009 - ?????!!!

May 22, 2012
#1


<!doctype html>
&lt;html&gt;
&lt;head&gt;

&lt;title&gt;URL Obfuscation : Flowplayer&lt;/title&gt;

&lt;link rel="shortcut icon" href="http://flash.flowplayer.org/favicon.ico"&gt;
&lt;!-- standalone page styling. can be removed --&gt;
&lt;style&gt;
body{
width:982px;
margin:50px auto;
font-family:sans-serif;
}
a:active {
outline:none;
}
:focus { -moz-outline-style:none; }

.palert {
padding: 12px;
color: black;
background-color: #ededed;
box-shadow: none;
}
&lt;/style&gt;

[removed][removed]

&lt;!-- flowplayer javascript component --&gt;
[removed][removed]

&lt;/head&gt;

&lt;body&gt;
&lt;!-- player container--&gt;
<a href="Wildlife4.flv" class="player"
style="display:block;width:425px;height:300px;margin:10px auto"
id="player">
&lt;!-- splash image inside the container --&gt;
<img src="/media/img/home/flow_eye.jpg"
alt="Search engine friendly content" /></a>

&lt;!-- this script block will install Flowplayer inside previous A tag --&gt;

[removed]
// our custom configuration is given in third argument
flowplayer("playerContainer", "http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf",{
plugins: {
controls: {
tooltips: null
}
}
});
[removed]
[removed]
flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf", {

// enable secure streaming plugin
plugins: {

secure: {
// path to the latest version
url: "http://releases.flowplayer.org/swf/flowplayer.securestreaming-3.2.8.swf",

// a hard-coded timestamp
timestamp: '987987987',

// a secure token
token: 'my-token'
}

},

// make the video clip use our secure streaming plugin
clip: {
urlResolvers: 'video',

// must be given
baseUrl: 'http://localhost/paypal/flowplayer-5.4.0'
}

});
[removed]
&lt;/body&gt;

&lt;/html&gt;



My actual videos are stored in video folder and when run this file am getting erroe called 300:player intialization failed :Type Error:Error#1009.Please help me thankx in advance
Shruthi
Apr 18, 2013
#2
Thank you for your solution.
?t is very helpful.
Mehtap Soyöz
Jun 15, 2013
#3