Opens a window that let's you select a file you wish to upload. (white-label)
Space.Videos.OpenUploadFileBrowser()
--this script will open a video upload window when clickedthisObject = Space.Host.ExecutingObjectfunctionOnClickFunction()Space.Videos.OpenUploadFileBrowser()endthisObject.AddClickable()thisObject.Clickable.Tooltip ="Click me to upload video"thisObject.Clickable.OnClick(OnClickFunction)
OnUploadEnd
void OnUploadEnd (Closure c)
Binds the function c to be called when an upload operation ends.
--this script will show a text on screen that says "Uploading..." when a video upload is initiated--and will hide it when the upload has endedthisObject = Space.Host.ExecutingObjecttextObject = Space.Host.GetReference("textObject") --add a UIText object to References in Scripting RuntimetextObject.UIText.Text ="Uploading..."functionOnUploadStartFunction()textObject.Active =trueendfunctionOnUploadEndFunction()textObject.Active =falseendSpace.Videos.OnUploadStart(OnUploadStartFunction)Space.Videos.OnUploadEnd(OnUploadEndFunction)
OnUploadStart
void OnUploadStart (Closure c)
Binds the function c to be called when an upload operation begins.
--this script will show a text on screen that says "Uploading..." when a video upload is initiated--and will hide it when the upload has endedthisObject = Space.Host.ExecutingObjecttextObject = Space.Host.GetReference("textObject") --add a UIText object to References in Scripting RuntimetextObject.UIText.Text ="Uploading..."functionOnUploadStartFunction()textObject.Active =trueendfunctionOnUploadEndFunction()textObject.Active =falseendSpace.Videos.OnUploadStart(OnUploadStartFunction)Space.Videos.OnUploadEnd(OnUploadEndFunction)