home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / multimedia / mediacoder / MediaCoder-0.6.0.3905.exe / extensions / AppleTV.7z / extension.xsl < prev    next >
Extensible Markup Language  |  2007-09-17  |  5KB  |  92 lines

  1. <?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
  2.     <!ENTITY nbsp   " ">
  3.     <!ENTITY copy   "©">
  4.     <!ENTITY reg    "®">
  5.     <!ENTITY trade  "™">
  6.     <!ENTITY mdash  "—">
  7.     <!ENTITY ldquo  "“">
  8.     <!ENTITY rdquo  "”"> 
  9.     <!ENTITY pound  "£">
  10.     <!ENTITY yen    "¥">
  11.     <!ENTITY euro   "€">
  12. ]>
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  14.   <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  15.   <xsl:include href="../_include/extbase.xsl"/>
  16.   <xsl:template match="/extension">
  17.     <html xmlns="http://www.w3.org/1999/xhtml">
  18.     <head>
  19.     <title><xsl:value-of select="name"/></title>
  20.     <link rel="stylesheet" href="style.css"/>
  21.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22.     <xsl:call-template name="InitExtension"/>
  23.     <script language="javascript" src="appletv.js"></script>
  24.     </head>
  25.     <body onunload="StopPlay()" onload="Refresh()">
  26.     <div class="extension">
  27.     <div class="panel">
  28.         <div align="center">
  29.             <div>
  30.               <h2><strong> Apple TV Extension </strong></h2>
  31.           </div>
  32.             <hr />
  33.         </div>
  34.           <table width="100%" border="0">
  35.             <tr>
  36.               <td><xsl:call-template name="AddElement">
  37.                 <xsl:with-param name="element" select="elements/element[@id='hasVideo']"/>
  38.                 </xsl:call-template>:</td>
  39.               <td><xsl:call-template name="AddElement">
  40.                 <xsl:with-param name="element" select="elements/element[@id='video']"/>
  41.                 </xsl:call-template>              </td>
  42.             </tr>
  43.             <tr>
  44.               <td width="78"><xsl:call-template name="AddElement">
  45.                 <xsl:with-param name="element" select="elements/element[@id='hasAudio']"/>
  46.                 </xsl:call-template>:</td>
  47.               <td width="120"><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='audio']"/></xsl:call-template></td>
  48.             </tr>
  49.             <tr>
  50.               <td>Resolution:</td>
  51.               <td><input name="resmode" id="resmode1" type="radio" checked="true" onchange="Refresh()"/><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='res']"/></xsl:call-template><br/>
  52.               <input name="resmode" id="resmode2" type="radio" onchange="Refresh()"/><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='width']"/></xsl:call-template> x <xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='height']"/></xsl:call-template></td>
  53.             </tr>
  54.             <tr>
  55.               <td>Cropping:</td>
  56.               <td><xsl:call-template name="AddElement">
  57.                 <xsl:with-param name="element" select="elements/element[@id='crop']"/>
  58.                 </xsl:call-template></td>
  59.             </tr>
  60.             <tr>
  61.               <td>Video Bitrate:</td>
  62.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='bitrate']"/></xsl:call-template> KBps </td>
  63.             </tr>
  64.             <tr>
  65.               <td>Audio Quality:</td>
  66.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='aq']"/></xsl:call-template></td>
  67.             </tr>
  68.           </table>
  69.           <p> </p>
  70.           <hr />
  71.           <div align="center">Progress<br/><iframe src="../_include/progress.htm" width="80%" height="20" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe></div>
  72.           <hr />
  73.           <p> </p>
  74.           <p> </p>
  75.           <p> </p>
  76.           <p align="center">
  77.             <input type="button" value="Play" style="width: 64px" onclick="PlayVideo(lcd())" />
  78.             <input type="button" value="Preview" style="width: 64px" onclick="PlayConvertedVideo(lcd())" />
  79.             <input type="button" value="Skip 10s" style="width: 64px" onclick="SendCommand('seek +10')" />
  80.             <input type="button" value="Crop" style="width: 64px" onclick="SendCommand('show_cropper')" />
  81.             <input type="button" value="SetTime" style="width: 64px" onclick="SendCommand('set_time')" />
  82.             <input type="button" value="Start" style="width: 64px" onclick="SendCommand('transcode')" />
  83.           </p>
  84.     </div>
  85.     <div style="position:absolute; left: 231px; top: 8px; border-style:groove; border-width:medium"><img src="appleitvi.jpg" /></div>
  86.     <embed width="195" height="146" style="position:absolute; left: 281px; top: 49px; width: 384px; height: 215px;" id="lcd" type="application/x-xulplayer-scriptable-plugin"></embed>
  87.     </div>
  88.     </body>
  89.     </html>
  90.   </xsl:template>
  91. </xsl:stylesheet>
  92.