PHPmotion Wiki : PHPmotionPlayer

HomePage :: Contents :: PageIndex :: Login/Register

PHPmotion Video Player (v3.5 upward)

As of V3.5, PHPmotion now has a new video player. We have built this new player with the aim of making at easy as possible to customise how it looks and how it works.

Note: This page is a work in progress and will be updated in due course.

How to control/customise the player

You can set various settings which determine how the player works and looks. These settings are called flashvars and are found main in 2 PHPmotion template file. (note that if you are using a custom theme, you must look in that themes folder)

  1. /themes/templates/default/templates/inner_index.htm
  2. /themes/templates/default/templates/make_player.html

Inside these template files, you will find a section that looks something like this:

<!--start of PHPmotion Player -->
<script type="text/javascript">
			var flashvars = {};
			var params = {};
			var attributes = {};
			flashvars.player_mode = "normal";
			flashvars.playlist = "no";
			flashvars.logo = "top_right";
			flashvars.floating_navbar = "false";
			flashvars.color_nav_bar_top = "0x478dc2";
			flashvars.color_nav_bar_bottom = "0xE7EBEC";
			flashvars.ads_background_color = "0x00CCFF";
			flashvars.ads_border_color = "0xCCCCCC";
			flashvars.scrubber_position_color = "0x6AA1CE";
			flashvars.scrubber_load_color = "0x888888";
			flashvars.scrubber_background_color = "0xBBBBBB";
			flashvars.volume_bar_color = "0xBBBBBB";	
			params.allowfullscreen = "true";
			params.allowscriptaccess = "sameDomain";
			//___dynamic settings________
			flashvars.flvsource = "[var.base_url]/uploads/[var.video_play]";
			flashvars.preview_image = "[var.base_url]/[var.thumb_file]";		
			flashvars.url_logo = "[var.base_url]/images/playerlogos/logo-player.png";
			flashvars.buffering_time = [var.video_buffer_time];
			flashvars.autoplay = "[var.auto_play_vid]";
			flashvars.display_ads = "[var.player_defaults_ads]";
			//___dynamic settings end ______
			swfobject.embedSWF("[var.base_url]/player.swf", "myAlternativeContent", "560", "420", "9.0.0", false, flashvars, params, attributes);
<!--end of PHPmotion Player -->


Possible values
flashvars.player_mode "normal"
In playlist mode, a sliding playlist is displayed within the player.
flashvars.playlist "yes"
When set to "yes" and when player_mode is set t
flashvars.playlist_xml "a url to the playlist xml" The url to the playlist xml file


Position of logo inside the player
flashvars.url_logo "a url to logo image" Location of image to display as logo inside the player
flashvars.autoplay "yes"
If set to "yes" the video will auto start when page loads
flashvars.buffering_time 1-99999 Number of seconds to buffer video
flashvars.aspect_ratio "stretch"
Determine how video is resized inside the player
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0240 seconds