Welcome, Guest
Please login or register
May 18, 2012, 08:23:07 AM
Topic: How to Add Youtube Video to player?  (Read 3515 times)
Author
How to Add Youtube Video to player?
tomekm
*
Posts: 14

« Reply #15 on: June 09, 2010, 04:59:01 PM »

Ok, I've replaced swf that I got from package which Peter1980 got from you.
And now it's worse than before.
Take a look: http://shp.tomarshal.pl/listings/1802lakeshore

Swf doesn't read my xml and tries to get default one from default dir. It seems that path to xml file is hard coded or name of flashvar changes in this version but analysis of html examples from package doesn't give answers.

I'm confused...

Adrian.B
Global Moderator

*****
Posts: 260



« Reply #16 on: June 10, 2010, 01:45:44 AM »

Your player does not load the xml, because the path to the settings.xml file is wrong.

The path is not hard coded, it is given via the flashvars in the embed code.

It is the line that says:


settingsFile: "settings.xml"

That is a relative path, and that is the default. It would load the xml if you put it in the same folder where the swf is.

If you have the settings.xml file in some other folder, provide the path to that folder:

settingsFile: "http://www.example.com/example_foldser/settings.xml"

tomekm
*
Posts: 14

« Reply #17 on: June 10, 2010, 03:52:09 AM »

... eh ...

Did you check source code of my example?

<param name="flashvars" value="htmlPage=http://shp.tomarshal.pl/listings/1802lakeshore&amp;settingsFile=http://shp.tomarshal.pl/?pid=example%26type=xml%26id=22">

I only changed swf file... nothing more...

and now he tries to access settings.xml

WHY?

Adrian.B
Global Moderator

*****
Posts: 260



« Reply #18 on: June 11, 2010, 09:09:16 AM »

Yep. You are right. We have a bug here. It appeared when we moved from AS2 to AS3. We'll update the players in several hours with the fix.

Adrian.B
Global Moderator

*****
Posts: 260



« Reply #19 on: June 11, 2010, 01:21:31 PM »

The player has been updated, and it includes the fix. Please redownload it.

Pages: 1 2
 

Community

What's hot on the forums

Hello,
we just purchased our adobe flash media server 3.5. We should have it built and ready to go next week. I am currently using the developmen...

News

Stay up to date

We've launched a new cool project called VisionFlow.

Like it? Share it!

Tell your friends about us

Do you like our products or our site? We would be very grateful if you shared them with your friends, colleagues, parents, pets and spread the word about our awesome products.

Share to Facebook Share to Twitter Stumble It Email This More Share...