%@ page import="com.en.fs.util.JSPUtils" %> <%@ page import="java.io.File" %> <%@ page import="com.en.fs.util.StringUtils" %> <%@ page import="com.en.fs.util.Misc" %> <%@ page contentType="text/html; charset=utf-8" language="java"%> <% JSPUtils ju = new JSPUtils(pageContext); String filepath = ju.s("filepath"); /*validation if file exist or not */ /*if(!new File(filepath).exists()){ out.println("Video file does not exist."); return; }*/ String encodedFilePath = ""; String originalFilePath = ""; boolean isEncodedPlaying = true; if(filepath.endsWith("_output.MP4")){ isEncodedPlaying = true; encodedFilePath = filepath; originalFilePath = filepath.substring(0,filepath.lastIndexOf("_output.MP4")); }else{ isEncodedPlaying = false; originalFilePath = filepath; encodedFilePath = filepath+"_output.MP4"; } System.out.println(originalFilePath); System.out.println(encodedFilePath); %>