YouTube/Vimeo Player FX

Published on May. 3rd 2011
35.854 downloads
You need to have Adobe Flash Player installed in order to view the component. You can download it from here: http://get.adobe.com/flashplayer/

Features

Version 1.0.24.8612 - 07.11.2013 (view changelog)

- plays videos (FLV, MOV etc.) and audio (MP3) both stored on your server or from YouTube/Vimeo
- possibility to use YouTube channels, Vimeo channels and users as input for playlist
- controls hide automatically if the user does not interact with the component
- support for multiple video formats (H.264, MP4, M4A, MOV, MP4V, F4V)
- custom built playlist with endless entries available (just edit the videos.xml file)
- shuffle and repeat functions available
- 100% CSS formatted text
- full screen mode supported
- fully customizable control bar and playlist (assets located in the assets/skins folder)

Installation instructions for:

Download the youtube-vimeo-player.zip package, extract it and copy all the resulted files and folders in the same location as the web page in which you want the product to be displayed. As an alternative, you can copy all the resulted files and folders in a different folder.

From the downloaded package, the SWF file represents the actual product while the other files (XMLs, images) are the assets that the SWF file uses. A short explanation how SWFs and XMLs interacts can be found here.

Open the HTML file with a text editor (like Notepad or TextEdit) and add the following code where you want the product to be displayed:

<div id="DivYouTubeVimeoPlayerFX"></div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
 var flashvars = {};
 var params = {};
 params.base = "";
 params.scale = "noscale";
 params.salign = "tl";
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "always";
 swfobject.embedSWF("YouTubeVimeoPlayerFX.swf", "DivYouTubeVimeoPlayerFX", "600", "400", "9.0.0", false, flashvars, params);
</script>

Don't forget to replace the 600 and 400 from the swfobject.embedSWF() function above with your own width and height that you specified in the settings.xml file through componentWidth and componentHeight elements. Also, don't forget to update the paths as specified in this FAQ article if you copied the product's files in a different folder.

CUSTOMIZATION

You can customize the YouTube/Vimeo Player FX using the Live Demo above and then download the youtube-vimeo-player.zip package with the changes you've made or you can edit the settings.xml file with a text editor.

To use your own videos, edit the videos.xml file with a text editor and define in each row the media path, the autoplay mode and the text between CDATA tags.

This is an example to add a YouTube video:

<youtube media="http://www.youtube.com/watch?v=6mCkbrYKQyI" autoplay="true">
<![CDATA[<thumbHead>Hello</thumbHead><thumbBody>Welcome to the new YouTube/Vimeo Player</thumbBody>]]></youtube>

This is an example to add a Vimeo video:

<vimeo media="http://vimeo.com/16285298" autoplay="true">
<![CDATA[<thumbHead>Hello</thumbHead><thumbBody>Welcome to the new YouTube/Vimeo Player</thumbBody>]]></vimeo>

This is an example to add a video file:

<video media="video_folder/video.mp4" image="video_folder/image.jpg" backColor="0x000000" backAlpha="1" autoplay="true">
<![CDATA[<thumbHead>Hello</thumbHead><thumbBody>Welcome to the new YouTube/Vimeo Player</thumbBody>]]></video>

This is an example to add a mp3 file:

<mp3 media="mp3_folder/filename.mp3" image="mp3_folder/image.jpg" backColor="0x000000" backAlpha="1" autoplay="true">
<![CDATA[<thumbHead>Hello</thumbHead><thumbBody>Welcome to the new YouTube/Vimeo Player</thumbBody>]]></mp3>

You can have as many videos as you like. To add a new video, add a new row in the XML file.

To use a YouTube channel as input for playlist you have to edit your settings.xml file and change the value of feedType attribute to youtube and specify the channel through userChannel attribute like this:

<feedType value="youtube"/>
<userChannel value="FlashXMLnet"/>

To use a YouTube playlist as input for playlist you have to edit your settings.xml file and change the value of feedType attribute to youtubePlaylist and specify the channel through userChannel attribute like this (e.g. this is the link to the playlist: http://www.youtube.com/playlist?list=PL63F0C78739B09958):

<feedType value="youtubePlaylist"/>
<userChannel value="PL63F0C78739B09958"/>

To use a Vimeo channel as input for playlist you have to edit your settings.xml file and change the value of feedType attribute to vimeoChannel and specify the channel through userChannel attribute like this:

<feedType value="vimeoChannel"/>
<userChannel value="FlashXMLnet"/>

To use a Vimeo user as input for playlist you have to edit your settings.xml file and change the value of feedType attribute to vimeoUser and specify the channel through userChannel attribute like this:

<feedType value="vimeoUser"/>
<userChannel value="FlashXMLnet"/>

Please visit our FAQ page for answers to common questions.

If you want to get rid of the flashxml.net label from the top-left corner visible in the free version you have to purchase the product and use the paid version instead.

You can see an example on how to add a product in your Wordpress article/page here and how to add it in your theme or as a widget here.

Make sure your Wordpress version is greater than 2.8 and your hosting provider is using PHP5.

 

1. There are two files to download:

    a. WordPress Plugin that you have to install and activate

    b. Free package

2. Create a new folder inside your wp-content folder called flashxml, inside this folder create a new one called youtube-vimeo-player-fx and copy the content of the free package there

3. If you copied the free package to a location different than the one above, go to YouTube/Vimeo Player FX from the Settings tab in your WordPress Dashboard and update the path accordingly

4. Add [youtube-vimeo-player-fx][/youtube-vimeo-player-fx] where you want the Flash to show up in your post/page

5. If you want to make the YouTube/Vimeo Player FX part of your theme, edit the template files and add <?php fxyoutubevimeoplayer_echo_embed_code(); ?> where you want it to show up

6. Customize your YouTube/Vimeo Player FX using the Live Demo from the top of this page. Download the ZIP file and use the included settings.xml file to overwrite wp-content/flashxml/youtube-vimeo-player-fx/settings.xml

7. To use your own videos, upload them to wp-content/flashxml/youtube-vimeo-player-fx/video and update the wp-content/flashxml/youtube-vimeo-player-fx/videos.xml file accordingly

 

Additional settings file

To embed the YouTube/Vimeo Player FX more than once, you will need another settings file and (probably) another set of videos. Let's assume your new file is called settings2.xml. Add [youtube-vimeo-player-fx settings="settings2.xml"][/youtube-vimeo-player-fx] where you want the Flash to show up in your post/page. If you made the Flash part of your theme, add the file name as the first argument of the fxyoutubevimeoplayer_echo_embed_code() function call (for example <?php fxyoutubevimeoplayer_echo_embed_code("settings2.xml"); ?>).

 

Add as widget

To add the YouTube/Vimeo Player FX as a widget, go to Widgets from the Appearance tab in your WordPress Dashboard, then drag and drop the YouTube/Vimeo Player FX from Available Widgets to the widget area you want. You can specify a different settings.xml file and an alternative content for users without Adobe Flash Player from the widget's settings.

 

No Flash support text

To support visitors without Adobe Flash Player, you can provide alternative content by adding the text between [youtube-vimeo-player-fx] and [/youtube-vimeo-player-fx]. If you made the Flash part of your theme, add the text as the second argument of the fxyoutubevimeoplayer_echo_embed_code() function call (for example <?php fxyoutubevimeoplayer_echo_embed_code("", "Alternative content"); ?>).

 

Change WMODE

By default, the WMODE value is transparent but you can change it to window from the YouTube/Vimeo Player FX in the Settings tab in your WordPress Dashboard. For widgets, this can be done from the widget's settings. If you want to have a different WMODE value in a specific place, it can be done like this: [youtube-vimeo-player-fx wmode="window"][/youtube-vimeo-player-fx]. If you're using the PHP function, here's an example on: <?php fxyoutubevimeoplayer_echo_embed_code("", "", 0, 0, "window"); ?>.

 

If you have PHP4

To make it work with PHP4, add [youtube-vimeo-player-fx width="400" height="300"][/youtube-vimeo-player-fx] where you want the Flash to show up in your post/page. If you made the Flash part of your theme, add the width and height as the third and fourth argument of the fxyoutubevimeoplayer_echo_embed_code() function call. Don't forget to provide your own width and height values, since 400 and 300 are just examples.

 

Getting rid of the FlashXML.net label

To remove the FlashXML.net label from the top-left corner you'll need to buy the paid package. Once you'll do that, simply use the SWF file from the paid package to overwrite the SWF file from the wp-content/flashxml/youtube-vimeo-player-fx/ folder.

1. Download the free package. You need to host all the included files from the package on your own domain because Facebook doesn't allow file hosting.

2. Log in to your Facebook account.

3. Search for the Static HTML: iframe tabs application and select it.

4. Click on Add Static HTML to a page button and you'll be prompted for the page where you want the app to be added.

5. Once added you'll see on the left side menu of your page a new tab with a star icon called Welcome. Click on it to edit it.

6. Add the following HTML embedding code in the text field:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.folderPath = "http://www.yourdomain.com/product_folder/";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowScriptAccess = "always";
params.allowFullScreen = "true";
var attributes = {};
swfobject.embedSWF("http://www.yourdomain.com/product_folder/ProductName.swf", "DivFlashComponent", "600", "400", "9.0.0", false, flashvars, params, attributes);
</script>
<div id="DivFlashComponent"></div>

Don't forget to use your own URL for the product's location, name, width and height.

7. Click preview to see how it looks or save changes. The product is now added to the Welcome tab of your page.

8. Optional: To change the tab's name, called by default Welcome, edit your page, go to the Apps tab and click Edit Settings option next to the Static HTML: iframe tabs application to enter the name you want.

9. Optional: To make the tab your default landing tab (first thing your visitors see on your page) edit your page and go to the Manage Permissions tab and change the Default Landing Tab.

Getting rid of the FlashXML.net label

To remove the FlashXML.net label from the top-left corner you'll need to buy the paid package. Once you do that, simply use the SWF file from the paid package to overwrite the SWF file from the location where you hosted all the files from the free package.

The module is used for adding the product in one or more pages in a given position (e.g. top, bottom, sidebar) while the plugin is used for adding the product inside a specific article.

You can see an example on how to install a module in your Joomla 1.5 website here, how to install a plugin in your Joomla 1.5 website here, how to install a module in your Joomla 1.6 website here and how to install a plugin in your Joomla 1.6 website here.

Make sure your Joomla version is at least 1.5 and your hosting provider is using PHP5.

 

Joomla Module Instructions:

1. There are two files to download (both under GPL License):

    a. Joomla Module (version 1.5 or version 1.6, 1.7 & 2.5 or version 3.x) that you have to install and enable

    b. Free package

2. Create a new folder inside your Joomla folder called flashxml, inside this folder create a new one called youtubevimeoplayerfx and copy the content of the free package there

3. If you copied the free package to a location different than the one above, update the Path from module's parameters accordingly

4. Customize your YouTube/Vimeo Player FX using the Live Demo from the top of this page. Download the ZIP file and use the included settings.xml file to overwrite flashxml/youtubevimeoplayerfx/settings.xml

Note that the Joomla Module can only be used once in your website.

 

Joomla Plugin Instructions:

1. There are two files to download (both under GPL License):

    a. Joomla Plugin (version 1.5 or version 1.6, 1.7 & 2.5 or version 3.x) that you have to install and enable

    b. Free package

2. Create a new folder inside your Joomla folder called flashxml, inside this folder create a new one called youtubevimeoplayerfx and copy the content of the free package there

3. If you copied the free package to a location different from the one above, update the Path from plugin's parameters accordingly

4. Add {youtubevimeoplayerfx}{/youtubevimeoplayerfx} where you want the Flash to show up in your article

5. Customize your YouTube/Vimeo Player FX using the Live Demo from the top of this page. Download the ZIP file and use the included settings.xml file to overwrite flashxml/youtubevimeoplayerfx/settings.xml

6. The default name for the settings file is settings.xml, but if you want to use another file (for example settings2.xml), specify the name like this: {youtubevimeoplayerfx settings=settings2.xml}{/youtubevimeoplayerfx} where you want the component to show up in your article

7. In some cases the width and height will not be read from the settings.xml file but you can specify them like this: {youtubevimeoplayerfx width=400 height=300}{/youtubevimeoplayerfx}. Don't forget to provide your own width and height values, since 400 and 300 are just examples.

 

No Flash support text

To support visitors without Adobe Flash Player, you can provide alternative content by adding the text between {youtubevimeoplayerfx} and {/youtubevimeoplayerfx}.

 

Changing WMODE

By default, the WMODE value is transparent but you can change it to window from the module/plugin's parameters. If you want to have a different WMODE value in a specific article, it can be done like this: {youtubevimeoplayerfx wmode=window}{/youtubevimeoplayerfx}.

 

Getting rid of the FlashXML.net label
To remove the FlashXML.net label from the top-left corner you'll need to buy the paid package.
Once you will do that, simply use the SWF file from the paid package to overwrite the SWF file from the flashxml/youtubevimeoplayerfx/ folder.

The YouTube/Vimeo Player FX component is available for Flash CS4, CS5, CS5.5 and requires Flash Player 10 or later. To use this product in Flash you need the MXP file that is available only in the paid package.

You can see an example of how to install a component in Flash Professional here.

In this video you will see:
- how to create an instance of the component on the stage: from the Components panel (Ctrl+F7) drag & drop the component on the stage
- how to give a name to an instance for further use in ActionScript: click on the component instance on the stage and from the Properties panel (Ctrl+F3) enter a name in the text input
- how to access the properties of the component (read or modify) during different moments of your Flash application

Any property of the component could be accessed that way. The names of the properties are identical with the ones from the settings.xml file. The properties of the component can be any of these three types: Number, String, Boolean. We assume it’s intuitive of which type each property is.

Warning! Setting the parameters of the component in the Component Inspector window (Shift+F7) and in the same time having a settings.xml file populated with different values for each property, the properties from the settings.xml file will have priority (meaning that a parameter set in the Component Inspector will be ignored if that parameter is also defined in the XML file).

For now, this component does not dispatch events, but stay tuned for an update.

free package

DOWNLOAD NOW

Comments

Olda Zika

Posted 4 days ago

Dear sirs,
I like YoutubeVimeoPlayer, but to use it I would like to use different video menus with one player. I found how to change settings with flashvars.settingsXML. Is it possible to change this way playlist videos?

Thank You
Olda

mg

Posted 4 days ago

this tutorial is complicated. can you please make a video tutorial?

Ivan

Posted 17 days ago

Also i do not operate the Vimeo link to 9 numbers. As we solve? Thanks

Massimiliano G

Posted 17 days ago

The script does not work with video Vimeo with the 9-digit code (for example, if you enter the video https://vimeo.com/113374923 displays video https://vimeo.com/11337492). I asked for assistance but have not received any response. Thank you and congratulations for the professionalism!

Ray Luckhurst

Posted one month ago

My you tube vimeo player only plays .flv and mp3 files. I am using mp4 and movs the progress bar looks to be loading but wont play, i.e blank screen scrub bar jumps back to 0 when navigating through the movie. I am also having trouble centering the component. Only seems to recognise ““TL”
Cheers
Great product, will purchase when I get all going.

Do you have a question?

you will get an answer in 24 hours, tops.

(required) Only alphanumeric characters allowed
(required) (will not be published)
Please type a message! Your message is too long! Either try to keep within 1500 characters, or contact our support team via email at support [at] flashxml.net.
(will not be published)
You mistyped the two words!
Can't read? Change the image
Format your comments using Textile: *bold*, _italic_, "link text":address, @code@
Connect to us on Facebook Follow us on Twitter Subscribe to our RSS feed
Copyright © FlashXML.net 2009 - 2014