Commit 6d080b04 authored by spoinsar's avatar spoinsar
Browse files

fix display size of video for admin screens


git-svn-id: http://subversion.utc/svn/webtv@198 6dbbdbe0-869d-41b9-a499-9a762c387331
parent a6e375ed
......@@ -62,10 +62,15 @@ if (!defined(VIDEOJS_DIR_NAME)) {
assign('ytcode',$ytcode);
}
if(!strstr($in['width'],"%"))
$in['width'] = $in['width'].'px';
if(!strstr($in['height'],"%"))
$in['height'] = $in['height'].'px';
if(!$in['width'] || strstr($in['width'],"%") || $in['width']<80) {
$in['width']=320;
}
$in['width'] = $in['width'].'px';
if(!$in['height'] || strstr($in['height'],"%") || $in['height']<45) {
$in['height']=180;
}
$in['height'] = $in['height'].'px';
assign('player_data',$in);
assign('mp4_sd',$mp4_sd);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment