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,6 +588,8 @@
<xsl:call-template name="searchbar"/> <xsl:call-template name="searchbar"/>
<div class="video"> <div class="video">
<xsl:choose>
<xsl:when test="@cortado='true'">
<applet <applet
code="com.fluendo.player.Cortado.class" code="com.fluendo.player.Cortado.class"
archive="/java/cortado-ovt-stripped-0.2.2.jar" archive="/java/cortado-ovt-stripped-0.2.2.jar"
@ -617,6 +619,37 @@
<param name="showStatus" value="show"/> <param name="showStatus" value="show"/>
<param name="bufferSize" value="200"/> <param name="bufferSize" value="200"/>
</applet> </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">