user can choose between cortado and video plugin

git-svn-id: http://yolanda.mister-muffin.de/svn@140 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-10-26 16:25:47 +00:00
parent bacb8c775d
commit 43c07155f8
2 changed files with 63 additions and 29 deletions

View file

@ -115,6 +115,7 @@ if($query->url_param('title') or $query->url_param('id'))
push @{ $page->{'video'} }, push @{ $page->{'video'} },
{ {
'thumbnail' => "$domain/video-stills/$id", 'thumbnail' => "$domain/video-stills/$id",
'cortado' => $query->param('cortado') eq 'false' ? "false" : "true",
'filesize' => $filesize, 'filesize' => $filesize,
'duration' => $duration, 'duration' => $duration,
'width' => $width, 'width' => $width,

View file

@ -588,35 +588,68 @@
<xsl:call-template name="searchbar"/> <xsl:call-template name="searchbar"/>
<div class="video"> <div class="video">
<applet <xsl:choose>
code="com.fluendo.player.Cortado.class" <xsl:when test="@cortado='true'">
archive="/java/cortado-ovt-stripped-0.2.2.jar" <applet
> code="com.fluendo.player.Cortado.class"
<xsl:attribute name="width"> archive="/java/cortado-ovt-stripped-0.2.2.jar"
<xsl:value-of select="@width" /> >
</xsl:attribute> <xsl:attribute name="width">
<xsl:attribute name="height"> <xsl:value-of select="@width" />
<xsl:value-of select="@height" /> </xsl:attribute>
</xsl:attribute> <xsl:attribute name="height">
<param name="url"> <xsl:value-of select="@height" />
<xsl:attribute name="value"> </xsl:attribute>
<xsl:value-of select="concat(rdf:RDF/cc:Work/@rdf:about,'/view=true')" /> <param name="url">
</xsl:attribute> <xsl:attribute name="value">
</param> <xsl:value-of select="concat(rdf:RDF/cc:Work/@rdf:about,'/view=true')" />
<param name="seekable" value="true"/> </xsl:attribute>
<param name="duration"> </param>
<xsl:attribute name="value"> <param name="seekable" value="true"/>
<xsl:value-of select="@duration" /> <param name="duration">
</xsl:attribute> <xsl:attribute name="value">
</param> <xsl:value-of select="@duration" />
<param name="keepAspect" value="true"/> </xsl:attribute>
<param name="video" value="true"/> </param>
<param name="audio" value="true"/> <param name="keepAspect" value="true"/>
<param name="statusHeight" value="24"/> <param name="video" value="true"/>
<param name="autoPlay" value="true"/> <param name="audio" value="true"/>
<param name="showStatus" value="show"/> <param name="statusHeight" value="24"/>
<param name="bufferSize" value="200"/> <param name="autoPlay" value="true"/>
</applet> <param name="showStatus" value="show"/>
<param name="bufferSize" value="200"/>
</applet>
<div>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat(rdf:RDF/cc:Work/dc:identifier, '/cortado=false')" />
</xsl:attribute>
Watch using Browser Video Plugin
</a>
</div>
</xsl:when>
<xsl:otherwise>
<object>
<xsl:attribute name="width">
<xsl:value-of select="@width" />
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="@height + 16" />
</xsl:attribute>
<xsl:attribute name="data">
<xsl:value-of select="concat(rdf:RDF/cc:Work/@rdf:about,'/view=true')" />
</xsl:attribute>
</object>
<div>
<a>
<xsl:attribute name="href">
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
</xsl:attribute>
Watch using Cortado Java Applet
</a>
</div>
</xsl:otherwise>
</xsl:choose>
</div> </div>
<div class="videodownload"> <div class="videodownload">