diff --git a/module/file/view/download.html.php b/module/file/view/download.html.php index 439e3532fc..40a70656a5 100644 --- a/module/file/view/download.html.php +++ b/module/file/view/download.html.php @@ -23,7 +23,7 @@
createLink('file', 'read', "fileID=$file->id"));?>
- +
file->playFailed;?>
@@ -62,6 +62,18 @@ function showError() $('.playfailed').show(); } +function loadedmetadata() +{ + var videoElem = $('video')[0]; + var metaHeight = videoElem.videoHeight; + var parentHeight = window.parent.innerHeight; + var videoMaxHeight = parentHeight - 190; + if(videoMaxHeight < metaHeight) + { + $(videoElem).css('height', videoMaxHeight); + } +} + function setCharset(charset) { var link = createLink('file', 'download', 'fileID=' + fileID + '&mouse=left');