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

Your preferred username that is used when logging in.

Load configuration from a URL Created Dec 9, 2008

This thread is solved

Views: 6089     Replies: 12     Last reply Nov 20, 2009  
You must login first before you can use this feature

Virgil

Posts: 18

Registered:
Nov 25, 2008

Load configuration from a URL

Posted: Dec 9, 2008

Here's my feature request - I'd like to be able to tell the player to load the full configuration from a URL.

The example of an 'embedded' config doesn't help in this case because I need the player to be embeddable on other sites, and many cannot include Javascript. While the JavaScript plugins are nice enough, they're just not practical for this purpose.

I can write out the full configuration into the embed code (and am currently), but if we end up using plugins to handle advertising it's too easy to just remove it from the embedded config to strip them out.

If the player could load the config from a URL, my embed code would be drastically shorter, and I could point it to a dynamically generated page to generate the playlists and plugins.

parawing742

Posts: 53

Registered:
Nov 11, 2008

» Load configuration from a URL

Posted: Dec 27, 2008

Reply to: Load configuration from a URL, from smith186
Perhaps this would be the solution to Myspace as well. Presently Myspace can't handle the generated embed code either.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

3.1 features (Load configuration from a URL)

Posted: Dec 28, 2008

Reply to: » Load configuration from a URL, from parawing742
This will be implemented and scheduled now for our 3.1 release in February/March. The 3.1 feature list now looks like this:

  • loading configuration from an external URL
  • improvements to controlbar: disable/enable buttons and other widgets, show target time when scrubbing (when moving the seek handle), possibly tooltips
  • ad plugins: OpenX, maybe one additional one
  • improvements for the streaming plugins: CDN integrations, support for RTMP server clusters, bandwidth detection

In addition to these there will be new versions of our JS tools.

Virgil

Posts: 18

Registered:
Nov 25, 2008

» 3.1 features (Load configuration from a URL)

Posted: Apr 21, 2009

Reply to: 3.1 features (Load configuration from a URL), from Anssi
Did this make it into the new release? I checked the updated documentation and the changelog for 3.1 and didn't see a mention of it.

jonbid

Posts: 11

Registered:
Sep 25, 2008

» » 3.1 features (Load configuration from a URL)

Posted: May 5, 2009

Reply to: » 3.1 features (Load configuration from a URL), from smith186
Yeah, this was why we upgraded to 3.1, and now I can't find it. This is really important to sites that want to let others embed their content - I don't want to make it easy for other people to alter our config settings when embedding. Also, so we can change config settings without having to ask every site that embedded our video to change the embed code.

dalamsap

Posts: 6

Registered:
Sep 24, 2009

Is this feature implemented yet?

Posted: Sep 28, 2009

Reply to: » » 3.1 features (Load configuration from a URL), from jonbid
Can anyone tell me if this feature has been implemented to the version 3.1.3. This is a very important feature for a sites that I'm using flowplayer in.

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» Is this feature implemented yet?

Posted: Sep 28, 2009

Reply to: Is this feature implemented yet?, from dalamsap
It's implemented since 3.1.1. Have a look at the last example of the alternate install methods documentation.

Basically you pass the path to the external configuration file as value to the flashvars parameter:


<param name="flashvars" value="config=/path/to/config.js" />

dalamsap

Posts: 6

Registered:
Sep 24, 2009

Thanks, embed like youtube

Posted: Sep 28, 2009

Reply to: » Is this feature implemented yet?, from blacktrash
I guess maybe I misunderstood what the OP is requesting.
My end goal is to make the object to be like youtube:<object width="425" height="344"><param name="movie" value=http://www.youtube.com/v/d7eGypGOlOc&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param></object>

so using flowplayer might look like this:

<object width="425" height="344"><param name="movie" value=http://www.mydomain.com/flowplayer.swf?movieName=testmovieID"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param></object>

As you can see the youtube one seems to not have any kind of configuration file name or anything, only the id of the video. When I go tohttp://www.youtube.com/v/d7eGypGOlOc
It loads as an swf file. Are they make an individual swf file for each video, or are they creating the swf with certain configuration dynamically?

Is there a way to do this?

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» Thanks, embed like youtube

Posted: Sep 28, 2009

Reply to: Thanks, embed like youtube, from dalamsap
The YouTube link you gave is probably a munged/encrypted version for something like:

http://www.blacktrash.org/swf/flowplayer.swf?config=http%3A//www.blacktrash.org/js/ccc.mp4.js

A link to an swf file (flowplayer) with a query for a configuration. Result at least is the same: Flash player filling entire browser window.

Again, this uses Flowplayer's capability to load an external config file.

dalamsap

Posts: 6

Registered:
Sep 24, 2009

You"re the best

Posted: Sep 28, 2009

Reply to: » Thanks, embed like youtube, from blacktrash
Thank a lot, this is very very helpful.

ToRmEnTeD
1000's of Music Videos On Demand! http://www.tormented.tv

Posts: 21

Registered:
May 26, 2009

» Load configuration from a URL

Posted: Oct 16, 2009

Reply to: Load configuration from a URL, from smith186
I am still not clear . If i use this method will the embed codes work on myspace or not ? Anyone tried it ? It will take me 2 days to figure it out,. If it dont work i dont wana even mess with it anymore

gmccomb

Posts: 746

Registered:
Apr 9, 2009

» » Load configuration from a URL

Posted: Oct 17, 2009

Reply to: » Load configuration from a URL, from ToRmEnTeD
I think the docs address this:

http://flowplayer.org/demos/installation/alternate/#external_config

So it looks like it's possible. There is no "JSON" syntax here, just good old Flashvars name/value pairs.

That said, the embed plugin isn't going to create the embed syntax for your users to copy and paste. There doesn't seem to be an option to have the embed plugin return a string using an external config file. You will need to do it manually, or ask the Flowplayer dev guys to consider adding it for the next version.

(There is a possibility that if you use an external config file in your Flowplayer setup it will be reflected in the embed string you get from the plugin. It should be easy to test.)

Virgil

Posts: 18

Registered:
Nov 25, 2008

» » Load configuration from a URL

Posted: Nov 20, 2009

Reply to: » Load configuration from a URL, from ToRmEnTeD
Yes and no. For remote embedding in most places, you cannot use JavaScript. One of my least favorite things about Flowplayer is the constant focus on using jQuery to load, embed, and control the player throughout the documentation. Do not want.

But with some work it is definitely possible to generate embed codes without JavaScript, and with the external configurations you can generate much smaller ones.

Here's the code I use on my site:

<embed src="http//[yourhost]/flowplayer.swf" flashvars="config=[url]" 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>

I removed the : from the URLs in the embed code, because the auto-linking on this site completely breaks them.

The way this works is that it loads a copy of Flowplayer which uses an external configuration file that is unique for each video (it's dynamically generated from a database on our site). That configuration file has everything that the player needs to play the video, including the plugin configuration and the playlist info. The only configuration other than that in the embed code is the width and height of the player, which need to be in the object tag.

Since it's just a basic object tag at this point it should be able to be embedded anywhere that supports them. You will need to generate and provide the embed code to your users on your own though, as Flowplayer will not generate it for you.