Platform


Your timezone: UTC - 5 hours [ DST ]



Post New Topic Reply to topic  [ 7 posts ] 
Author Message
 Post Subject: FLV player widget
PostPosted: Tue Oct 27, 2009 11:23 pm 
User avatar

Joined: Fri Aug 08, 2008 8:59 pm
Posts: 15
I'm trying to create a widget out of an FLV player called Flowplayer (http://flowplayer.org) and I am having issues with the configuration. The configuration param passed to Flowplayer is a large JSON object, so it is too long to fit in the Clearspring configuration parameters. It also has another way to pass in configuration, which is to point it to an external file.

For example, if my swf is hosted at http://mydomain.com/assets/swf/flowplay ... Config.php, it will check in the same directory for clearspringConfig.php and read the JSON config object from that file. Similarly, I can pass in an absolute URL (though it has to be from the same domain, as far as I can figure out) and it'll work, or I can pass in a relative URL such as /config/clearspringConfig.php to open http://mydomain.com/config/clearspringConfig.php. All of these scenarios work when I test them locally, but when I try to create a Clearspring widget with the Flowplayer, I can't seem to get it to read the config file properly. I've set my configuration parameter correctly I think (parameter name is config, and I've tried values for absolute URL, and both styles of relative URLs). I've run out of things to try, any suggestions? Is a relative URL in the config parameters going to be relative to my widgets URL or to Clearspring? If using an absolute URL, is it potentially not working because the widget it coming from Clearspring and not from mydomain?

Let me know if this is enough to work off of, I'm hosting the files on my laptop so they're not always available, hence why I didn't post a valid URL.


Top
 Profile E-mail  
 
 Post Subject: Re: FLV player widget
PostPosted: Wed Oct 28, 2009 8:48 am 
Clearspring Employee
Clearspring Employee

Joined: Mon Feb 23, 2009 12:19 pm
Posts: 1265
Location: Washington DC Region
Hi,

Please use full path instead of relative paths for all your urls.
Please pass us a url to test if the above case isnt solving your issue.

_________________
Clearspring Support


Top
 Profile E-mail  
 
 Post Subject: Re: FLV player widget
PostPosted: Wed Oct 28, 2009 2:00 pm 
User avatar

Joined: Fri Aug 08, 2008 8:59 pm
Posts: 15
I started using absolute URLs and added a crossdomain.xml file to my server, but things still aren't working quite right. For testing purposes, I removed the configuration parameters and just added it to the source URL, as if I only ever needed one configuration (I just wanted to see it working first, then figure out the configuration parameters issue). Now the video plays correctly in the preview on the Edit Widget -> Source URL page, but when I view it wrapped by the Clearspring container, the player breaks. Here is my widget homepage: http://www.clearspring.com/widgets/4add05b87f393cae. I'll try to keep my server running until I get a response.

It appears that the Clearspring wrapper is interfering somehow the player's initialization...but that's just a wild guess. If I change the URL parameter to an invalid file, I get different (still broken) results, so I know at least that the URL is going through to the player.


Top
 Profile E-mail  
 
 Post Subject: Re: FLV player widget
PostPosted: Thu Oct 29, 2009 5:51 am 
Clearspring Employee
Clearspring Employee

Joined: Mon Feb 23, 2009 12:19 pm
Posts: 1265
Location: Washington DC Region
Hi,

Your server is down at the moment (76.169.128.112) so that i am not able to test with your widget.

Are you sure that you are using absolute url for each and every url using in the swf. I guess that is the one and only reason for the issue.

Please set up a test page for me so that i can dig it in detail.

_________________
Clearspring Support


Top
 Profile E-mail  
 
 Post Subject: Re: FLV player widget
PostPosted: Tue Nov 03, 2009 1:32 pm 
User avatar

Joined: Fri Aug 08, 2008 8:59 pm
Posts: 15
I have finally gotten the widget on a server that will always be up. Here is my widget homepage:

http://www.clearspring.com/widgets/4add05b87f393cae

And here is the source URL I am using:

http://cs.staging.bigstage.com/shell/assets/swf/flowplayer.commercial-3.1.4.swf?config=http%3A%2f%2fcs.staging.bigstage.com%2fshell%2fclearspringConfig.php

If you can confirm for me that you think it is because there are relative URLs in the swf I am using, that would be great. It is a product I have purchased from another company, I am not a flash developer myself. If you can confirm there is nothing on your side that should be preventing it from working correctly, I can issue a support request for them to fix the issue with their player.


Top
 Profile E-mail  
 
 Post Subject: Re: FLV player widget
PostPosted: Wed Nov 04, 2009 11:36 am 
Clearspring Employee
Clearspring Employee

Joined: Mon Feb 23, 2009 12:19 pm
Posts: 1265
Location: Washington DC Region
Hi,

When we load your widget. It is showing a flash error

Error: 301: Unable to load plugin: unable to load plugin 'controls', url: 'flowplayer.controls.swf'
at org.flowplayer.view::Launcher/doHandleError()
at org.flowplayer.view::Launcher/handleError()
at org.flowplayer.view::Launcher/onPluginLoadError()
at EventListener/notify()
at org.flowplayer.model::EventDispatcher/_dispatchEvent()
at org.flowplayer.model::EventDispatcher/http://flowplayer.org/core/internal::doDispatchErrorEvent()
at org.flowplayer.model::PluginEventDispatcher/dispatchError()
at MethodInfo-402()
at Array$/_forEach()
at Array/http://adobe.com/AS3/2006/builtin::forEach()

You please check with this with your product support.

_________________
Clearspring Support


Top
 Profile E-mail  
 
 Post Subject: Re: FLV player widget
PostPosted: Fri Nov 06, 2009 10:53 pm 
User avatar

Joined: Fri Aug 08, 2008 8:59 pm
Posts: 15
Thanks for the help. I'll pursue a support request through Flowplayer with this info.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post New Topic Reply to topic  [ 7 posts ]