Sha256: 897ea29fb801b115a2bf193315ffb45aa9410de06f2b364630f100c3c6941476

Contents?: true

Size: 1.47 KB

Versions: 18

Compression:

Stored size: 1.47 KB

Contents

var flashObj;
var delegate = {};
var mediaTypeInput;

//KSU handlers
delegate.readyHandler = function()
{	
	flashObj = document.getElementById("uploader");
}

delegate.selectHandler = function()
{	
	//flashObj.upload();
	console.log("selectHandler()");		
	console.log(flashObj.getTotalSize());
}

function setMediaType()
{
	var mediaType = document.getElementById("mediaTypeInput").value; 
	//alert(mediaType);
	console.log(mediaType);
	flashObj.setMediaType(mediaType);
}

delegate.singleUploadCompleteHandler = function(args)
{
	
	flashObj.addEntries();
	console.log("singleUploadCompleteHandler", args[0].title);
	document.getElementById('button_submit').disabled = false;
	
}

delegate.allUploadsCompleteHandler = function()
{
	console.log("allUploadsCompleteHandler");
}

delegate.entriesAddedHandler = function(entries)
{
	//alert(entries.length);
	var entry = entries[0];
	//alert(entry.entryId);
	document.getElementById('video_entry_id').value = entry.entryId
	console.log(entries);
}

delegate.progressHandler = function(args)
{	
	document.getElementById('video_title').value = args[2].title;
	var bob = Math.round(args[0] / args[1] * 100);	
	document.getElementById('progress').value = bob;
	console.log(args[2].title + ": " + args[0] + " / " + args[1]);
}

delegate.uiConfErrorHandler = function()
{
	console.log("ui conf loading error");
}

<!--- JavaScript callback methods to activate Kaltura services via the KSU widget.-->
function upload()
{
	flashObj.upload();
	//flashObj.addEntries();
}

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
kaltura_fu-0.2.1 lib/generators/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.9 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.8 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.7 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.5 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.4 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.3 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.2 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0.1 generators/kaltura_fu_install/templates/kaltura_upload.js
goncalossilva-kaltura_fu-0.2.0 generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.2.0 generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.5 generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.4 generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.3 generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.3.prel generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.2.prel generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.1.prel generators/kaltura_fu_install/templates/kaltura_upload.js
kaltura_fu-0.1.0.prel javascripts/kaltura_upload.js