Package sk.iway.iwcm.gallery
Class VideoConvert
java.lang.Object
sk.iway.iwcm.gallery.VideoConvert
VideoConvert.java - trieda pre konverziu video suborov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanconvert(String format, String sourceUrl, String destinationUrl, int width, int height, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request) static Stringconvert(UploadFileForm my_form, String fileURL, javax.servlet.http.HttpServletRequest request) Skonveruje uploadnuty subor na video, pouziva sa v Editore v uploade a v galerii v uploadestatic booleanconvertAudio(String format, String sourceUrl, String destinationUrl, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request) static booleanconvertToFlv(String sourceUrl, String destinationUrl, int width, int height, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request) static booleanconvertToMp4(String sourceUrl, String destinationUrl, int width, int height, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request) static booleanisVideoFile(String fileName) Vrati true ak sa dany subor je mozne povazovat za video suborstatic StringmakeScreenshot(String videoPath, Dimension d) static booleanrenameFile(String oldFilePath, String newFilePath)
-
Constructor Details
-
VideoConvert
public VideoConvert()
-
-
Method Details
-
convertToMp4
-
convertToFlv
-
convert
-
convertAudio
-
renameFile
-
convert
public static String convert(UploadFileForm my_form, String fileURL, javax.servlet.http.HttpServletRequest request) Skonveruje uploadnuty subor na video, pouziva sa v Editore v uploade a v galerii v uploade- Parameters:
my_form-fileURL-request-- Returns:
-
isVideoFile
Vrati true ak sa dany subor je mozne povazovat za video subor- Parameters:
fileName-- Returns:
-
makeScreenshot
public static String makeScreenshot(String videoPath, Dimension d) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-