I have searched in other forums and can’t find any good results.
I tried to load the path of the ZIP file in js, but it doesn’t work for me.
here the code:
function open_file_from_ZIP(path, zip_path, type){
var zip_path = path+'://'+zip_path;
var loader = new ZipLoader(path);
switch (type) {
case "folder" :
$("#folder-manager-table tr").remove();
break;
case "image" :
window.top. open_responsive();
window.top. $("#image-viewer-panel").attr("src", loader.load(zip_path) );
break;
case "audio" :
window.top. $('#audio-player-tag').attr('src', loader.load(zip_path));
window.top. document.getElementById("audio-player-tag").play();
break;
case "video" :
window.top. open_video();
window.top. $('#popup-video-viewer').attr('src', loader.load(zip_path));
window.top. document.getElementById("popup-video-viewer").play();
break;
}
}