diff --git a/main/document/showinframes.php b/main/document/showinframes.php
index dce3f188a8..a1b66d76a7 100755
--- a/main/document/showinframes.php
+++ b/main/document/showinframes.php
@@ -104,7 +104,7 @@ if (!api_is_allowed_to_edit() && !$is_visible) {
}
$pathinfo = pathinfo($header_file);
-$jplayer_supported_files = array('mp4', 'ogv','flv');
+$jplayer_supported_files = array('mp4', 'ogv', 'flv', 'm4v');
$jplayer_supported = false;
if (in_array(strtolower($pathinfo['extension']), $jplayer_supported_files)) {
@@ -250,33 +250,38 @@ if ($isChatFolder) {
}
$execute_iframe = true;
-
if ($jplayer_supported) {
$extension = api_strtolower($pathinfo['extension']);
+ if ($extension == 'mp4') {
+ $extension = 'm4v';
+ }
$js_path = api_get_path(WEB_LIBRARY_PATH).'javascript/';
$htmlHeadXtra[] = '';
$htmlHeadXtra[] = '';
- $jquery = ' $("#jquery_jplayer_1").jPlayer({
- ready: function() {
- $(this).jPlayer("setMedia", {
- '.$extension.' : "'.$document_data['direct_url'].'"
- });
- },
- errorAlerts: false,
- warningAlerts: false,
- swfPath: "'.$js_path.'jquery-jplayer/jplayer/",
- //supplied: "m4a, oga, mp3, ogg, wav",
- supplied: "'.$extension.'",
- //wmode: "window",
- solution: "flash, html", // Do not change this setting
- cssSelectorAncestor: "#jp_container_1",
- });';
+ $jquery = '
+ $("#jquery_jplayer_1").jPlayer({
+ ready: function() {
+ $(this).jPlayer("setMedia", {
+ '.$extension.' : "'.$document_data['direct_url'].'"
+ });
+ },
+ cssSelectorAncestor: "#jp_container_1",
+ swfPath: "'.$js_path.'jquery-jplayer/jplayer/",
+ supplied: "'.$extension.'",
+ useStateClassSkin: true,
+ autoBlur: false,
+ smoothPlayBar: true,
+ keyEnabled: false,
+ remainingDuration: true,
+ toggleDuration: true
+ });
+ ';
$htmlHeadXtra[] = '';
$execute_iframe = false;
@@ -356,9 +361,11 @@ if ($show_web_odf) {
echo '';
if ($jplayer_supported) {
- echo '