o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1438779258.6662445: @value" {I" class:ETI"ProcessedAsset;FI"logical_path;TI"1jquery-fileupload/jquery.fileupload-video.js;FI" pathname;TI"ž/home/florent/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/jquery-fileupload-rails-0.4.5/app/assets/javascripts/jquery-fileupload/jquery.fileupload-video.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2015-08-04T16:39:17+02:00;TI" length;TiÓ I" digest;TI"%9ce7b1657cbac5523aca9d288dc97a79;FI" source;TI"Ó /* * jQuery File Upload Video Preview Plugin 1.0.4 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* jshint nomen:false */ /* global define, require, window, document */ (function (factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // Register as an anonymous AMD module: define([ 'jquery', 'load-image', './jquery.fileupload-process' ], factory); } else if (typeof exports === 'object') { // Node/CommonJS: factory( require('jquery'), require('load-image') ); } else { // Browser globals: factory( window.jQuery, window.loadImage ); } }(function ($, loadImage) { 'use strict'; // Prepend to the default processQueue: $.blueimp.fileupload.prototype.options.processQueue.unshift( { action: 'loadVideo', // Use the action as prefix for the "@" options: prefix: true, fileTypes: '@', maxFileSize: '@', disabled: '@disableVideoPreview' }, { action: 'setVideo', name: '@videoPreviewName', disabled: '@disableVideoPreview' } ); // The File Upload Video Preview plugin extends the fileupload widget // with video preview functionality: $.widget('blueimp.fileupload', $.blueimp.fileupload, { options: { // The regular expression for the types of video files to load, // matched against the file type: loadVideoFileTypes: /^video\/.*$/ }, _videoElement: document.createElement('video'), processActions: { // Loads the video file given via data.files and data.index // as video element if the browser supports playing it. // Accepts the options fileTypes (regular expression) // and maxFileSize (integer) to limit the files to load: loadVideo: function (data, options) { if (options.disabled) { return data; } var file = data.files[data.index], url, video; if (this._videoElement.canPlayType && this._videoElement.canPlayType(file.type) && ($.type(options.maxFileSize) !== 'number' || file.size <= options.maxFileSize) && (!options.fileTypes || options.fileTypes.test(file.type))) { url = loadImage.createObjectURL(file); if (url) { video = this._videoElement.cloneNode(false); video.src = url; video.controls = true; data.video = video; return data; } } return data; }, // Sets the video element as a property of the file object: setVideo: function (data, options) { if (data.video && !options.disabled) { data.files[data.index][options.name || 'preview'] = data.video; } return data; } } }); })); ;TI"dependency_digest;TI"%9759c1defee67a01a5f5587871920f53;FI"required_paths;T[I"ž/home/florent/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/jquery-fileupload-rails-0.4.5/app/assets/javascripts/jquery-fileupload/jquery.fileupload-video.js;FI"dependency_paths;T[{I" path;TI"ž/home/florent/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/jquery-fileupload-rails-0.4.5/app/assets/javascripts/jquery-fileupload/jquery.fileupload-video.js;FI" mtime;TI"2015-08-04T16:39:17+02:00;TI" digest;TI"%52bd23d25bfc250838cdbb1df25dd758;FI" _version;TI"%29ed33acb378e0c0b27fe5f96549550a;F