removed cortado playback method (temporarily) for easier refactoring of
code git-svn-id: http://yolanda.mister-muffin.de/svn@243 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
ec9b764967
commit
40a138849d
1 changed files with 23 additions and 149 deletions
|
@ -53,10 +53,6 @@
|
||||||
var _thumbnail = document.getElementById('thumbnail');
|
var _thumbnail = document.getElementById('thumbnail');
|
||||||
_container.removeChild(_thumbnail);
|
_container.removeChild(_thumbnail);
|
||||||
|
|
||||||
if (navigator.mimeTypes
|
|
||||||
&& navigator.mimeTypes["application/ogg"]
|
|
||||||
&& navigator.mimeTypes["application/ogg"].enabledPlugin)
|
|
||||||
{
|
|
||||||
_film = document.createElement('object');
|
_film = document.createElement('object');
|
||||||
_film.type = "application/ogg";
|
_film.type = "application/ogg";
|
||||||
]]>
|
]]>
|
||||||
|
@ -70,23 +66,6 @@
|
||||||
_film.appendChild(_film_alt);
|
_film.appendChild(_film_alt);
|
||||||
_container.appendChild(_film);
|
_container.appendChild(_film);
|
||||||
}
|
}
|
||||||
else if (navigator.mimeTypes
|
|
||||||
&& navigator.mimeTypes["application/x-java-applet"]
|
|
||||||
&& navigator.mimeTypes["application/x-java-applet"].enabledPlugin)
|
|
||||||
{
|
|
||||||
_elseh1 = document.createElement('h1');
|
|
||||||
_elsetext = document.createTextNode('LOL JAVA');
|
|
||||||
_elseh1.appendChild(_elsetext);
|
|
||||||
_container.appendChild(_elseh1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_elseh1 = document.createElement('h1');
|
|
||||||
_elsetext = document.createTextNode('NO PLUGIN FOUND');
|
|
||||||
_elseh1.appendChild(_elsetext);
|
|
||||||
_container.appendChild(_elseh1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
]]]]></xsl:text>
|
]]]]></xsl:text>
|
||||||
<xsl:text disable-output-escaping="yes">></xsl:text>
|
<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||||
|
@ -99,56 +78,6 @@
|
||||||
<input type="button" value="playback" onclick="show_movie()" />
|
<input type="button" value="playback" onclick="show_movie()" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="//video/@cortado='true'">
|
|
||||||
|
|
||||||
<applet
|
|
||||||
code="com.fluendo.player.Cortado.class"
|
|
||||||
archive="/java/cortado-ovt-stripped-0.2.2.jar"
|
|
||||||
>
|
|
||||||
<xsl:attribute name="width">
|
|
||||||
<xsl:value-of select="//video/@width" />
|
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:attribute name="height">
|
|
||||||
<xsl:value-of select="//video/@height" />
|
|
||||||
</xsl:attribute>
|
|
||||||
<param name="url">
|
|
||||||
<xsl:attribute name="value">
|
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
|
||||||
</xsl:attribute>
|
|
||||||
</param>
|
|
||||||
<param name="seekable" value="true"/>
|
|
||||||
<param name="duration">
|
|
||||||
<xsl:attribute name="value">
|
|
||||||
<xsl:value-of select="//video/@duration" />
|
|
||||||
</xsl:attribute>
|
|
||||||
</param>
|
|
||||||
<param name="keepAspect" value="true"/>
|
|
||||||
<param name="video" value="true"/>
|
|
||||||
<param name="audio" value="true"/>
|
|
||||||
<param name="statusHeight" value="24"/>
|
|
||||||
<param name="autoPlay" value="true"/>
|
|
||||||
<param name="showStatus" value="show"/>
|
|
||||||
<param name="bufferSize" value="200"/>
|
|
||||||
</applet>
|
|
||||||
|
|
||||||
<div class="watch-browserplugin">
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="//@embed='true'">
|
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=false&embed=true')" />
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=false')" />
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<object type="application/ogg" style="float: left;" id="video">
|
<object type="application/ogg" style="float: left;" id="video">
|
||||||
<xsl:attribute name="width">
|
<xsl:attribute name="width">
|
||||||
<xsl:value-of select="//video/@width" />
|
<xsl:value-of select="//video/@width" />
|
||||||
|
@ -163,23 +92,6 @@
|
||||||
<img src="/images/vlc.png"/>
|
<img src="/images/vlc.png"/>
|
||||||
<img src="/images/mplayer.png"/>
|
<img src="/images/mplayer.png"/>
|
||||||
</object>
|
</object>
|
||||||
<div class="watch-cortadoapplet">
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="//@embed='true'">
|
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=true&embed=true')" />
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=true')" />
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -217,44 +129,6 @@
|
||||||
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" /> <xsl:value-of select="$locale_strings[@id='megabytes']" />)
|
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" /> <xsl:value-of select="$locale_strings[@id='megabytes']" />)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--
|
|
||||||
not implemented right now
|
|
||||||
|
|
||||||
<div class="button-junk">
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=junk')" />
|
|
||||||
</xsl:attribute>
|
|
||||||
<img src="/images/tango/mail-mark-junk.png" />
|
|
||||||
</a>
|
|
||||||
<br />
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=junk')" />
|
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:value-of select="$locale_strings[@id='junk_video']" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="button-edit">
|
|
||||||
<xsl:if test="//@edit='true'">
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
|
|
||||||
</xsl:attribute>
|
|
||||||
<img src="/images/tango/accessories-text-editor.png" />
|
|
||||||
</a>
|
|
||||||
<br />
|
|
||||||
<a>
|
|
||||||
<xsl:attribute name="href">
|
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
|
|
||||||
</xsl:attribute>
|
|
||||||
<xsl:value-of select="$locale_strings[@id='edit_video']" />
|
|
||||||
</a>
|
|
||||||
</xsl:if>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<xsl:call-template name="cclicense"/>
|
<xsl:call-template name="cclicense"/>
|
||||||
|
|
||||||
<div class="videostuff">
|
<div class="videostuff">
|
||||||
|
|
Loading…
Reference in a new issue