Skip to content

Commit

Permalink
no longer need the "iaid" minor hack only specific to code running di…
Browse files Browse the repository at this point in the history
…rectly at Internet Archive

git-svn-id: http://www.kaltura.org/kalorg/html5video/trunk/mwEmbed@3778 b58a29cf-3064-46da-94c6-1c29cc75c8e5
  • Loading branch information
traceypooh committed Jan 13, 2012
1 parent fbeda27 commit 61bc46a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions mwEmbedFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ function __construct(){

// Parse the embedFrame request and sanitize input
private function parseRequest(){
if( isset($_REQUEST['iaid']) && include('/petabox/setup.inc') ){
$this->playerIframeId .= Video::mwEmbedSetup(); // archive.org media (in JS, this is the "mw.IA" var)
}

// Check for / attribute type request and update "REQUEST" global
// ( uses kaltura standard entry_id/{entryId} request )
// normalize to the REQUEST object
Expand Down Expand Up @@ -139,11 +135,7 @@ private function getVideoTag( ){
// Output each source
if( count( $this->sources ) ){
foreach($this->sources as $src ){
$ute = (isset($_REQUEST['iaid']) && //Internet Archive
($suffix = strrchr($src,'.')) &&
($suffix=='.ogv' || $suffix=='.mp4') ?
' URLTimeEncoding="true"' : '');
$o.= '<source src="' . htmlspecialchars( $src ) . '"'.$ute.'></source>';
$o.= '<source src="' . htmlspecialchars( $src ) . '"></source>';
}
}
$o.= '</video>';
Expand Down

0 comments on commit 61bc46a

Please sign in to comment.