通過使用你的JSP和 jquery.fineuploader.js通過創建
var uploader = new qq.FineUploader({
//here you can write your uploading video code
element : document.getElementById('fine-uploader'),
acceptFiles : 'video/mpeg',
autoUpload: false,
multiple: false,
});
// more code to write
// and for more details refer
http://fineuploader.com/fine-uploader-demo.html
您的播放器的html代碼
<div id="player" style="display: inline-block; position:relative; margin-top:-25px;">
<a href="http://get.adobe.com/fr/flashplayer/">You need to install the Flash plugin</a>
</div>
<div id="fine-uploader"></div>
您可以通過播放.mp4文件uploade使用以下代碼
function playVideo(videoUrl){
$("#player").css('display', 'inline-block');
$("#player > Object").remove();
var flashvars= {};
var video = {
quality: "high",
bgcolor: "#000000",
allowScriptAccess: "always",
allowFullScreen: "true",
wmode: "transparent",
flashvars: "fichier="+videoUrl,
};
var attributes = {};
flashObject("http://flash.webestools.com/flv_player/v1_27.swf", "player", "297", "180", "8", false, flashvars, video, attributes);
}
這將提供播放器和播放.mp4文件。適用於Firefox,但不適用於iexplorer。
這是真的。 –