Widget Events (Deprecated)

To securely organize your user-uploaded videos, you can declare a static label and or a regular expression dynamic parameter.

fileSelected

Dispatched when a user in the native file selector dialog selects a file. The event handler must accept one parameter. The following properties of the event object will be populated:

  • name – File name including extension but not including path.
  • size – File size in bytes
  • creationDate – Date when file was created (if available), in Day Mon Date HH:MM:SS TZD YYYY format
  • modificationDate – Date when file was last modified (if available), in Day Mon Date HH:MM:SS TZD YYYY format
  • creator – User who created file (if available)

progress

Notifies event handler of upload progress. The event handler must accept one parameter. The following properties of the event object will be populated:

  • total – Total number of bytes to be uploaded
  • uploaded – Number of bytes already uploaded
  • ratio – Number between 0 and 1 inclusive indicating upload progress

Under certain circumstances (e.g. files smaller than ~20Kb) upload may be completed without firing any progress events.

error

Dispatched when there is an upload error. The event handler will receive one parameter, which is the error text.

complete

Dispatched when upload finishes successfully. The event handler function must not require any parameters.

embedCodeReady

Dispatched when a video uploaded through a widget has completed processing. The event handler will receive one parameter, which is the embed code of the video.

Note: The embedCode will be available shortly after an upload is initiated, however it does not indicate that the video has completed processing. Video availability is indicated by reception of the completion ping or by checking the video status through the API query interfaces.

해당 내용이 도움 되었습니까?