Changeset 29062


Ignore:
Timestamp:
Jul 21, 2014, 9:57:51 AM (10 years ago)
Author:
jdd
Message:

Fix quicktime with fixed width and height

Location:
extensions/charlies_content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/charlies_content/Changelog.txt.php

    r29057 r29062  
    44** History **
    55
    6 
     620140721 fixed quicktime player (at least mov and mp4), with fixed height and width (640x360+controls
    77
    8820140719 change comments in mp3player.tpl, change plugin name in main.inc, comment out "adviser" limitation for saving changes in config.php (no use seen)
  • extensions/charlies_content/charlie_quicktime.tpl

    r3318 r29062  
    11<!-- /charlie_quicktime.tpl -->
    22{*
    3  If you don't plan to play Quicktime files on your web site,
    4  change player by the one you want
    53 Based on documentation from http://www.apple.com/quicktime/tutorials/embed.html
    64*}
    7 {assign var="main_width" value="`$fileinfo.video.resolution_x+$by_style+$by_style`"}
    8 <div id="charlie" style="height: {$fileinfo.video.resolution_y}px; width:{$main_width}px; padding-top: 0px; margin-top: 20px;">
     5
     6
     7{assign var="main_width" value="`640+$by_style+$by_style`"}
     8<div id="charlie" style="height: {398}px; width:{$main_width}px; padding-top: 0px; margin-top: 20px;">
    99        <div class="{$curtain}_1" style="padding-left:{$by_style}px;">
    1010                <div class="{$curtain}_2" style="padding-right:{$by_style}px;">
     11               
     12<!--           
     13               
    1114<object id="player" CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="{$fileinfo.video.resolution_x}" HEIGHT="{$fileinfo.video.resolution_y}"
    1215        CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
     
    2225    <param name="Scale" VALUE="ToFit">
    2326          {if ($Charlies.volume!='')}<param name="Volume" VALUE="{$Charlies.volume}">{/if}
    24 <!--[if !IE]> <-->
     27
    2528          <embed PluginsPage="http://www.apple.com/quicktime/download/"
    26                         {if ($Charlies.showplayer==1)}Controller="true"{/if} Type="video/quicktime" {if ($Charlies.autoload==1)}Autoplay="true"{/if}
    27                         TargetCache="true" Cache="true" id="embedplayer"
     29                {if ($Charlies.showplayer==1)}Controller="true"{/if} Type="video/quicktime"
     30                {if ($Charlies.autoload==1)}Autoplay="true"{/if}
     31                TargetCache="true" Cache="true" id="embedplayer"
    2832                Target="myself" Src="{$SRC_IMG}"  WIDTH="{$fileinfo.video.resolution_x}" HEIGHT="{$fileinfo.video.resolution_y}"
    29                 {if ($Charlies.loop==1)}Loop="true"{/if} Scale="ToFit" {if ($Charlies.volume!='')}Volume="{$Charlies.volume}"{/if}>
    30 <!--> <![endif]-->
    31 </object> <!-- embed is needed for Opera and FireFox -->
     33                {if ($Charlies.loop==1)}Loop="true"{/if}
     34                Scale="ToFit"
     35                {if ($Charlies.volume!='')}Volume="{$Charlies.volume}"{/if}
     36                />
     37
     38</object>
     39-->
     40
     41<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"     width="640" height="398">
     42 <param name="src" value="{$SRC_IMG}">
     43 <param name="autoplay" value="true">
     44 <param name="pluginspage" value="http://www.apple.com/quicktime/download/">
     45 <param name="type" value="video/quicktime">
     46 <param name="Scale" value="ToFit" >
     47    <embed
     48     src="{$SRC_IMG}"
     49     width="640"
     50     height="398"
     51     autoplay="true"
     52     Scale="ToFit"
     53     pluginspage="http://www.apple.com/quicktime/download/"
     54     type="video/quicktime"
     55     />
     56</object>
     57
    3258                </div>
    3359        </div>
Note: See TracChangeset for help on using the changeset viewer.