Skip to content

Commit

Permalink
HTML 5 player video function
Browse files Browse the repository at this point in the history
fix #219
  • Loading branch information
gnujavasergio committed Jul 9, 2022
1 parent c019f41 commit e2d8874
Show file tree
Hide file tree
Showing 54 changed files with 9,845 additions and 2,128 deletions.
42 changes: 6 additions & 36 deletions src/main/java/com/openkm/frontend/client/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -574,39 +574,6 @@ public static native String getUserAgent() /*-{
}
}-*/;

public static native void removeMediaPlayer() /*-{
$wnd.swfobject.removeSWF("jsmediaplayer");
}-*/;

public static native void createMediaPlayer(String mediaUrl, String mediaProvider, String width, String height) /*-{
$wnd.swfobject.embedSWF("../js/mediaplayer/player.swf", "mediaplayercontainer", width, height, "9.0.0", "../js/mediaplayer/expressinstall.swf", {
file: mediaUrl,
provider: mediaProvider,
autostart: "true",
width: width,
height: height
}, {allowscriptaccess: "always", allowfullscreen: "true"}, {id: "jsmediaplayer", name: "jsmediaplayer"});
}-*/;

public static native void resizeMediaPlayer(String width, String height) /*-{
obj = $wnd.swfobject.getObjectById('jsmediaplayer');
obj.width = width;
obj.height = height;
}-*/;

public static native void createSwfViewer(String swfUrl, String width, String height) /*-{
$wnd.swfobject.embedSWF(swfUrl, "swfviewercontainer", width, height, "9.0.0", "../js/mediaplayer/expressinstall.swf", {
width: width,
height: height
}, {}, {id: "jswfviewer", name: "jswfviewer"});
}-*/;

public static native void resizeSwfViewer(String width, String height) /*-{
obj = $wnd.swfobject.getObjectById('jswfviewer');
obj.width = width;
obj.height = height;
}-*/;

public static native void createPDFViewerFlexPaper(String pdfUrl, String width, String height) /*-{
fpViewer = "../js/flexpaper/FlexPaperViewer.swf";
pdfUrl = encodeURIComponent(pdfUrl);
Expand Down Expand Up @@ -648,9 +615,12 @@ public static native void resizePDFViewerFlexPaper(String width, String height)
}-*/;

public static native void resizeEmbededPDF(String width, String height, String pdfId) /*-{
obj = $wnd.document.getElementById(pdfId);
obj.width = width;
obj.height = height;
obj = $wnd.document.getElementById(pdfId);
// Take in consideration if object exists
if (obj != null) {
obj.width = width;
obj.height = height;
}
}-*/;

public static native void copyToClipboard(String text) /*-{
Expand Down

This file was deleted.

Loading

0 comments on commit e2d8874

Please sign in to comment.