Skip to content

Commit

Permalink
Internet Archive hack kaltura#2 to this file. dog have mercy on my so…
Browse files Browse the repository at this point in the history
…ul...

git-svn-id: http://www.kaltura.org/kalorg/html5video/trunk/mwEmbed@2091 b58a29cf-3064-46da-94c6-1c29cc75c8e5
  • Loading branch information
traceypooh committed Jun 3, 2011
1 parent 73f7d97 commit e9cbf53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mwEmbedFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ private function getVideoTag( ){
// Output each source
if( count( $this->sources ) ){
foreach($this->sources as $src ){
$o.= '<source src="' . htmlspecialchars( $src ) . '"></source>';
$ute = (isset($_REQUEST['iaid']) && //Internet Archive
($suffix = strrchr($src,'.')) &&
($suffix=='.ogv' || $suffix=='.mp4') ?
' URLTimeEncoding="true"' : '');
$o.= '<source src="' . htmlspecialchars( $src ) . '"'.$ute.'></source>';
}
}
$o.= '</video>';
Expand Down

0 comments on commit e9cbf53

Please sign in to comment.