source: extensions/charlies_content/charlie_wmplayer.tpl @ 15542

Last change on this file since 15542 was 3318, checked in by vdigital, 16 years ago

+ Add Charlies' content to depository

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1<!-- /charlie_wmplayer.tpl -->
2{*
3 If you don't plan to play Video via Windows Media Player on your web site, -->
4 change player by the one you want -->
5 Based on documentation from http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/usingtheplayercontrolinawebpage.asp
6*}
7<br />
8{assign var="main_width" value="`$fileinfo.video.resolution_x+$by_style+$by_style`"}
9<div id="charlie" style="height: {$fileinfo.video.resolution_y}px; width:{$main_width}px; padding-top: 0px; margin-top: 0px;">
10        <div class="{$curtain}_1" style="padding-left:{$by_style}px;">
11                <div class="{$curtain}_2" style="padding-right:{$by_style}px;">
12                        <object id="MediaPlayer" height="{$fileinfo.video.resolution_y}" width="{$fileinfo.video.resolution_x}" alt="object {$ALT_IMG}"
13                          classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
14                          standby="Loading Windows Media Player components..."
15                          type="application/x-oleobject"
16                          codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
17                                  <param name="filename" value="{$SRC_IMG}">
18                                  {if ($Charlies.showplayer==1)}<param name="showcontrols" value="true">{/if}
19                                  {if ($Charlies.autoplay==1)}<param name="autostart" value="true">{/if}
20                                  {if ($Charlies.loop==1)}<param name="loop" value="false">{/if}
21                                  {if ($Charlies.autoload==1)}<param name="animationatstart" value="true">{/if}
22                                  <param name="showdisplay" value="false">
23                                  <param name="transparentatstart" value="true">
24                                  {if ($Charlies.showloading>0)}<param name="showstatusbar" value="true">{/if}
25                                  <param name="enablecontextmenu" value="true">
26                                  {if ($Charlies.full==1)}<param name="fullscreen" value="true">{/if}
27                                  <param name="stretchtofit" value="true">
28                                  <param name="uimode" value="none">
29                                  <param name="allowchangedisplaysize" value="true">
30                                  <param name="autosize" value="true">
31                                  {if ($Charlies.volume!='')}<param name="volume" value="{$Charlies.volume}">{/if}
32                                  <param name="type" value="video/x-ms-asf-plugin">
33                                  <param name="pluginspage" value="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/">
34                        <!--[if !IE]> <-->
35                                  <embed pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
36                                                src="{$SRC_IMG}" {if ($Charlies.showplayer==1)}showcontrols="true"{/if}
37                                                {if ($Charlies.autoplay==1)}autostart="true"{/if}
38                                                {if ($Charlies.loop==1)}loop="false"{/if}
39                                {if ($Charlies.autoload==1)}animationatstart="true"{/if} showdisplay="false" transparentatstart="true"
40                                        {if ($Charlies.showloading>0)}showstatusbar="true"{/if}
41                                                enablecontextmenu="true" width="{$fileinfo.video.resolution_x}" height="{$fileinfo.video.resolution_y}"
42                                        {if ($Charlies.full==1)}fullscreen="true"{/if} stretchtofit="true" uimode="none" id="embedplayer"
43                                        allowchangedisplaysize="true" autosize="true" displaysize="mpfittosize"
44                                        autorewind="true" {if ($Charlies.volume!='')}volume="{$Charlies.volume}"{/if} type="video/x-ms-asf-plugin">
45                        <!--> <![endif]-->
46                        </object> <!-- embed is needed for Opera and FireFox -->
47                </div>
48        </div>
49</div>
50{html_head}
51<link rel="stylesheet" type="text/css" href="{$CHARLIES_PATH|@cat:'charlies.css'}"> 
52{/html_head}
Note: See TracBrowser for help on using the repository browser.