Commit b356a01a authored by xavidp's avatar xavidp

[FIX]Fix Usability bug to display a simple .webm (VP8) video in Tiki uploaded...

[FIX]Fix Usability bug to display a simple .webm (VP8) video in Tiki uploaded to a file gallery through plugin mediaplayer. It still fails to display with webdocviewer even if seems to be supported in theory.
parent d560dcd4
......@@ -206,6 +206,12 @@ function wikiplugin_mediaplayer($data, $params)
'width' => 320,
'height' => 240,
);
if (preg_match('/webm/', $params['type']) >0 && $params['type'] != 'video/webm') {
$params['type'] = 'video/webm';
}
if ($params['type'] == 'video/webm'){
$params['style'] = 'native';
}
if (!empty($params['flv'])) {
$params = array_merge($defaults_flv, $params);
} elseif (!empty($params['mp3'])) {
......
Markdown is supported
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