Anda di halaman 1dari 2

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"; flashvars.aspect_ratio="stretch"; 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]"; [var.player_defaults_ads_xml] //___dynamic settings end ______ swfobject.embedSWF("[var.base_url]/player.swf", "myAlternativeContent", "560", "420", "9.0.0", false, flashvars, params, attributes); </script> <!--end of PHPmotion Player -->

Flashvars
Flasvar Possible values Function

flashvars.player_mode

"normal" "playlist" "yes" "no" "a url to the playlist xml" "top_right"

In

playlist

mode,

sliding

playlist

is

displayed within the player. When set to "yes" and when player_mode is set t The url to the playlist xml file

flashvars.playlist

flashvars.playlist_xml

flashvars.logo

"top_left" "bottom_right" "bottom_left"

Position of logo inside the player

flashvars.url_logo

"a url to logo image" "yes" "no"

Location of image to display as logo inside the player If set to "yes" the video will auto start when page loads Number of seconds to buffer video Determine how video is resized inside the player

flashvars.autoplay

flashvars.buffering_time 1-99999 flashvars.aspect_ratio "stretch" "fit"

Anda mungkin juga menyukai