Skip to content

Commit 8700571

Browse files
committed
Add webm support in showinframes.php (using jplayer)
1 parent f646c26 commit 8700571

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/document/showinframes.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
}
102102

103103
$pathinfo = pathinfo($header_file);
104-
$jplayer_supported_files = array('mp4', 'ogv', 'flv', 'm4v');
104+
$jplayer_supported_files = array('mp4', 'ogv', 'flv', 'm4v', 'webm');
105105
$jplayer_supported = false;
106106

107107
if (in_array(strtolower($pathinfo['extension']), $jplayer_supported_files)) {
@@ -250,6 +250,9 @@ function init() {
250250
if ($extension == 'mp4') {
251251
$extension = 'm4v';
252252
}
253+
if ($extension == 'webm') {
254+
$extension = 'webmv';
255+
}
253256
$js_path = api_get_path(WEB_LIBRARY_PATH).'javascript/';
254257
$htmlHeadXtra[] = '<link rel="stylesheet" href="'.$js_path.'jquery-jplayer/skin/blue.monday/css/jplayer.blue.monday.css" type="text/css">';
255258
$htmlHeadXtra[] = '<script type="text/javascript" src="'.$js_path.'jquery-jplayer/jplayer/jquery.jplayer.min.js"></script>';

0 commit comments

Comments
 (0)