Configure the Custom Uploader
19min
use the following information as a guide to configure the features of custom publishing description of custom uploading use custom uploading, rather than basic uploading, where a custom uploading api is required and when you need to create your own user interface (ui) you can design the ui with additional controls not contained in the basic uploader this allows the user to enter metadata through any configured web interface control (for example, to input additional information that is uploaded with the recording) app display properties allow you to customize branding and message strings in the screen recorder and video editor the added optional input fields post back when requesting the upload url for a custom upload, create a java jar file with code that implements the custom publish interface in the jar file you create, account for upload properties skin images other properties the following steps outline the custom publishing process implement the custompublish java interface class create a signed jar with a class that implements the custompublish java interface and any additional classes created to support the upload process host the jar in the jarhostpath add the jar to the jars list remove the basicuploadskin jar (if present) sample custom publishing implementation the following is an example structure of a custom publishing implementation custompublishexamplesrc \| appdisplay properties \| frame icon png| publish customupload 16 png \| publish customupload 24 png \| publish customupload 48 png | \\ com \\ screencastomatic \\ custompublish custompublishimpl java file specifications the sizes for the 96 dpi png icons are as follows frame icon png 48x48 publish customupload 16 png 16x16 publish customupload 24 png 24x24 publish customupload 48 png 48x48 custompublishimpl java we will provide example files to you custom publishing sample (html) we will provide example files to you appdisplay properties the following properties can be set in the appdisplay properties file som app frame title som app preview\ title som app drawandzoom enabled som app editing enabled som app upload message som app upload deleteafter som app upload showlink som app upload onexit action som app content subdirectory som app custompublish name som app custompublish class som app frame title this property contains the title displayed on the window for the application som app frame title=mybrand som app preview\ title this property contains the title displayed at the top of the window when viewing the preview after recording som app preview\ title=upload to mybrand som app drawandzoom enabled this property enables and disables the show draw and zoom tool on the recorder som app drawandzoom enabled=true som app editing enabled this property enables and disables the show edit button to offer editing after recording som app editing enabled=true som app upload message this property contains the message displayed after upload is complete (note the title replace which we will replace using the setdonemessage in the custompublishimpl as an example that you can update this message dynamically or replace the complete message ) som app upload message=\\ \<div style="font size 17pt; text align\ left;">\\ uploaded video \<br>\\ \<b>title replace\</b>\\ \<br>\<br>\\ you can set up a custom message here and also \\ \<ul>\\ \<li>choose if you want to show the link below \<br>\<br>\</li>\\ \<li>choose if you want to launch a url when the \<b>continue\</b> button below is pressed so you can direct the user to a playback page or any other url \</li>\\ \</ul>\\ \<br>for example, this app is set to go to screencast o matic com when you click \<b>continue\</b>\\ \</div> som app upload deleteafter when this property is set to true , the app deletes the local recording after a successful upload when this property is set to false , the app does not remove the local recording som app upload deleteafter=true som app upload showlink this property enables and disables the show a link and copy button for the url returned after upload is complete som app upload showlink=true som app upload onexit action this property provides an optional link to launch after the user clicks the button when upload is complete omit this setting if no page needs to launch otherwise, set this property to a url or to the string "gotoplayback," which launches the url you returned after the upload is complete som app upload onexit action=http //screencast o matic com/ som app content subdirectory this property sets the subdirectory to store your users’ recordings the default location where this subdirectory is created is documents the following example creates documents\screen recorder , and adds a recordings directory with a subdirectory for each recording stored on the computer ( documents\screen recorder\recordings\ individual recording folders ) som app content subdirectory=screen recorder som app custompublish name this property sets the name shown in the app for example, "upload to mybrand " som app custompublish name="upload to mybrand" som app custompublish class this property specifies the class that you provide to implement the com screencastomatic custompublish interface som app custompublish class=com screencastomatic custompublish custompublishimpl