Need help setting up external configuration file for use with OBJECT tag embedding
Posted: Jul 15, 2009
Hello all,
I've looked through the forums and have not found a clear explanation that can help me. I have set up Flowplayer (free version) on my site and have it configured how I want it, and it works. Here is the code that I am satisfied with:
What I would like to do is set up an external configuration file that will use all of those parameters on every instance of Flowplayer to be used on the site, with the exception of the clip url. The clip url is the only parameter that will vary.
First I read this:http://flowplayer.org/demos/configuration/external.html
But it didn't apply to me as I am using the <OBJECT> tag, so I read this:http://flowplayer.org/demos/installation/alternate/#external_config
It still doesn't make sense to me. The sample code on that page doesn't show how to reference both the external configuration file and the clip url in the embed code. The clip url is included as a default value in the linked configuration file http://flowplayer.org/demos/installation/alternate/config.js) but that's useless to me, because the clip url is the one thing that will be a variable in the different pages I will embed Flowplayer. The configuration file is also very spartan, and doesn't contain much in the way of explanation.
To be clear, what I want to know is:
1. How to format the external configuration file to make the following settings consistent across the site, based on the configuration in the above referenced code:
2. The correct syntax to embed Flowplayer using the <OBJECT> tag and correctly reference both the clip url and the external configuration file.
If someone could actually write the code with comments, that would be most helpful for me, rather than just saying "oh, do this." It's not that I am lazy, but if I could see the code with an explanation, it would help me to learn.
Thanks in advance for your help!
I've looked through the forums and have not found a clear explanation that can help me. I have set up Flowplayer (free version) on my site and have it configured how I want it, and it works. Here is the code that I am satisfied with:
<object id="flowplayer" width="480" height="295" data="http://gnymbeta.newessextheater.com/uploads/flowplayer/flowplayer-3.1.1.swf" type="application/x-shockwave-flash">
<param name="movie" value="http://gnymbeta.newessextheater.com/uploads/flowplayer/flowplayer-3.1.1.swf" /> <param name="allowfullscreen" value="true" />
<param name="flashvars" value='config={"clip":{"url":"http://gnymbeta.newessextheater.com/uploads/GNYMUpcomingEventsJuly2009.flv","autoPlay":false,"autoBuffering":true,"scaling":"fit"}}' /> </object>
What I would like to do is set up an external configuration file that will use all of those parameters on every instance of Flowplayer to be used on the site, with the exception of the clip url. The clip url is the only parameter that will vary.
First I read this:http://flowplayer.org/demos/configuration/external.html
But it didn't apply to me as I am using the <OBJECT> tag, so I read this:http://flowplayer.org/demos/installation/alternate/#external_config
It still doesn't make sense to me. The sample code on that page doesn't show how to reference both the external configuration file and the clip url in the embed code. The clip url is included as a default value in the linked configuration file http://flowplayer.org/demos/installation/alternate/config.js) but that's useless to me, because the clip url is the one thing that will be a variable in the different pages I will embed Flowplayer. The configuration file is also very spartan, and doesn't contain much in the way of explanation.
To be clear, what I want to know is:
1. How to format the external configuration file to make the following settings consistent across the site, based on the configuration in the above referenced code:
- width
- height
- allowfullscreen
- autoPlay
- autoBuffering
- scaling
2. The correct syntax to embed Flowplayer using the <OBJECT> tag and correctly reference both the clip url and the external configuration file.
If someone could actually write the code with comments, that would be most helpful for me, rather than just saying "oh, do this." It's not that I am lazy, but if I could see the code with an explanation, it would help me to learn.
Thanks in advance for your help!