You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Need help setting up external configuration file for use with OBJECT tag embedding Created Jul 15, 2009

This thread is solved

Views: 3819     Replies: 7     Last reply Nov 24, 2010  
You must login first before you can use this feature

NewEssexTheater

Posts: 1

Registered:
Jul 15, 2009

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:


<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!

TrentF

Posts: 1

Registered:
Jul 23, 2009

me too!

Posted: Jul 23, 2009

Reply to: Need help setting up external configuration file for use with OBJECT tag embedding, from NewEssexTheater
I'm also having this issue. I'd love to know how (or if it's even possible) to specify the clip in the flashvars along with an external configuration file for everything else. Is this functionality supported?

I have a client who's purchased a commercial version of flowplayer for their content management system, and they have a lengthy configuration file. We currently have the free version working, and now they'd like to implement their (customized) commercial version. I'd love to be able to use the configuration file they created rather than have to figure out all the formatting in order to include those settings in the flashvars via the embed tag.

It wouldn't be so bad if they only had one flowplayer, but they have several sections in their site where they use differently-skinned players. Using external configuration files along with clips specified in the flashvars would be an ideal solution for me. Any thoughts?

Virgil

Posts: 18

Registered:
Nov 25, 2008

» Need help setting up external configuration file for use with OBJECT tag embedding

Posted: Jul 23, 2009

Reply to: Need help setting up external configuration file for use with OBJECT tag embedding, from NewEssexTheater
What I'm doing is dynamically generating the config files for each video. The nice advantage here, and the main reason I'm doing it that way, is that you can change the location of the video file without needing to change the embed code or breaking already-existing external embeds.

Here's our embed tag:
<embed src=http://static.themis-media.com/media/global/movies/player/flowplayer.commercial-3.1.1.swf" flashvars="confighttp://www.themis-media.com/videos/config/813-0d085741874f761128d055ad81bb34a5.js" allowfullscreen="true" allowscriptaccess="always" quality="high" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage=http://www.adobe.com/go/getflashplayer" width="480" height="294" wmode="opaque"></embed>

You can see the generated configuration file here:http://www.themis-media.com/videos/config/813-0d085741874f761128d055ad81bb34a5.js

I know it's not exactly what you're looking for, but hopefully it can at least give you a place to start. I'm also using an embed tag instead of an object tag, but it should be simple to change the tag and arguments to your preference.

One thing to note is that the width and height of the player need to be specified in the HTML, not in the configuration, so at least some configuration is still needed in the base tag.

Edit: The code tag seems to be munging up some of the embed code, but you can grab a copy here: http://www.escapistmagazine.com/videos/view/rebecca-mayes-muses/813-The-Sims-3

RegioTV.ch

Posts: 5

Registered:
Jun 2, 2009

Other possibilities?

Posted: Feb 2, 2010

Reply to: » Need help setting up external configuration file for use with OBJECT tag embedding, from smith186
Are there other possibilities than generating a dynamic JS-File (as Virgil said) for the scenario NewEssexTheater posted at the beginning?

NewEssexTheater wrote:
2. The correct syntax to embed Flowplayer using the <OBJECT> tag and correctly reference both the clip url and the external configuration file.

Is this possible in any way? I have flowplayer 3.1.5.

Would be very glad for help.

RegioTV.ch

Posts: 5

Registered:
Jun 2, 2009

» Other possibilities?

Posted: Feb 9, 2010

Reply to: Other possibilities?, from RegioTV.ch
Could anyone please provide any help? Please...

jtflow

Posts: 13

Registered:
Nov 24, 2010

And me too

Posted: Nov 24, 2010

Reply to: Need help setting up external configuration file for use with OBJECT tag embedding, from NewEssexTheater
I have the same question as NewEssexTheater:

"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."

Any way to do this?

I am not using the OBJECT tag embedding.

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» And me too

Posted: Nov 24, 2010

Reply to: And me too, from jtflow
Well, if you're not using the object tag, you have exactly the setup for the standard flowplayer installation using flowplayer.js as described here:

http://flowplayer.org/documentation/installation/index.html

If given, flowplayer.js uses the href attribute of the player container as clip url. Exactly what you want, out of the box in the most simple install.

jtflow

Posts: 13

Registered:
Nov 24, 2010

Thanks!

Posted: Nov 24, 2010

Reply to: » And me too, from blacktrash
Simple solution - don't know how I overlooked this.

Thanks a lot for your answer!