Edit D:\chineseall_products\bak\digitalLib6\pages\standard\js\mediaDetail.js
var swfPath = ppath + "/js/jplayer-2.9.2/jplayer"; var agent = navigator.userAgent.toLowerCase(); function playMedia(fileId, title) { var mediaType = $("#mediaType").val(); var mediaId = $("#mediaId").val(); webDwr.recordUserMedia(mediaId, fileId, function(info){ if(info=="ok") { $("div.catalog a.on").removeClass("on"); $("div.catalog a[fileId='" + fileId + "']").addClass("on"); if(mediaType == "1") { playAudio(fileId, title); } else if(mediaType == "2") { playVideo(fileId, title); } } else { window.location=$("div.bottom").attr("ssoLoginUrl"); } }); } function playAudio(fileId, title) { var filePath = ppath + "/getMediaFile.action?objectId=" + fileId; $("#jquery_jplayer_1").jPlayer("destroy"); $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { title: title, mp3: filePath }); $(this).jPlayer("play"); }, ended: function () { var nextObj = $("div.catalog a.on").next(); var fileId = $(nextObj).attr("fileId"); var title = $(nextObj).html(); playMedia(fileId, title); }, play: function() { $("div.st_mllist a.play").removeClass("play").addClass("pause"); $("div.st_mllist a[fileId='" + fileId + "']").addClass("play"); }, pause: function() { $("div.st_mllist a[fileId='" + fileId + "']").removeClass("play").addClass("pause"); }, swfPath: swfPath, supplied: "mp3", wmode: "window", useStateClassSkin: true, autoBlur: false, smoothPlayBar: true, keyEnabled: true, remainingDuration: true, toggleDuration: true }); } function playVideo(fileId, title) { var filePath = ppath + "/getMediaFile.action?objectId=" + fileId; var videoObject = { container: '#videoContainer', variable: 'player', autoplay:true, flashplayer:false, video:filePath }; var player=new ckplayer(videoObject); $("#videoContainer").show(); }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de