META-INF.resources.bower_components.blueimpfileupload.js.jquery.fileupload-video.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-blueimp-fileupload Show documentation
Show all versions of jwebmp-blueimp-fileupload Show documentation
File Upload widget with multiple file selection, drag and drop support, progress bar, validation and preview images, audio and video for jQuery.
Supports cross-domain, chunked and resumable file uploads.
Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.
(function(a){if(typeof define==="function"&&define.amd){define(["jquery","load-image","./jquery.fileupload-process"],a)}else{if(typeof exports==="object"){a(require("jquery"),require("blueimp-load-image/js/load-image"),require("./jquery.fileupload-process"))}else{a(window.jQuery,window.loadImage)}}}(function(a,b){a.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadVideo",prefix:true,fileTypes:"@",maxFileSize:"@",disabled:"@disableVideoPreview"},{action:"setVideo",name:"@videoPreviewName",disabled:"@disableVideoPreview"});a.widget("blueimp.fileupload",a.blueimp.fileupload,{options:{loadVideoFileTypes:/^video\/.*$/},_videoElement:document.createElement("video"),processActions:{loadVideo:function(g,d){if(d.disabled){return g}var e=g.files[g.index],c,f;if(this._videoElement.canPlayType&&this._videoElement.canPlayType(e.type)&&(a.type(d.maxFileSize)!=="number"||e.size<=d.maxFileSize)&&(!d.fileTypes||d.fileTypes.test(e.type))){c=b.createObjectURL(e);if(c){f=this._videoElement.cloneNode(false);f.src=c;f.controls=true;g.video=f;return g}}return g},setVideo:function(d,c){if(d.video&&!c.disabled){d.files[d.index][c.name||"preview"]=d.video}return d}}})}));
© 2015 - 2025 Weber Informatics LLC | Privacy Policy