I checked the current code and seems in what will be version 6.3.10 we use html previewer. Take a look at Preview.class (
https://github.com/openkm/document-mana ... eview.java ). Look for this code section from line 252
Code: Select all/**
* Set the media file to reproduce
*
* @param mediaUrl The media file url
*/
public void showMediaFile(String mediaUrl, String mimeType) {
hideWidgetExtension();
vPanel.clear();
if (previewEvent != null) {
vPanel.add(hReturnPanel);
vPanel.setCellHeight(hReturnPanel, String.valueOf(TURN_BACK_HEIGHT) + "px");
}
vPanel.add(video);
vPanel.setCellHorizontalAlignment(video, HasAlignment.ALIGN_CENTER);
vPanel.setCellVerticalAlignment(video, HasAlignment.ALIGN_MIDDLE);
this.mediaUrl = mediaUrl;
Util.removeMediaPlayer();
video.setHTML("<div id=\"mediaplayercontainer\"></div>\n");
if (mimeType.equals("audio/mpeg")) {
mediaProvider = "sound";
} else if (mimeType.equals("video/x-flv") || mimeType.equals("video/mp4")) {
mediaProvider = "video";
} else if (mimeType.equals("application/x-shockwave-flash")) {
mediaProvider = "";
}
Util.createMediaPlayer(mediaUrl, mediaProvider, "" + width, "" + height);
}
I suggest this player
https://www.mediaelementjs.com/