VideoUploader.TimeFormat Property

Format for time display in Progress Dialog.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var vu = new VideoUploaderWriter("VideoUploaderID", 610, 500);
//...other params...
vu.addParam("TimeFormat", "Appearance=Words;PresentDirection=HMS;DigitsFormat=N;HideZero=TRUE");
//...other params...
vu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getVideoUploader("VideoUploaderID").setTimeFormat(value);
value = getVideoUploader("VideoUploaderID").getTimeFormat();

Property Value

A string value that specifies a format using the following syntax:

variable1=value1;variable2=value2;...

The order and case sensitivity are not important. Possible values are:

Appearance
Sets the view. Possible values: Words (standard), ColonSeparated (XX:XX:XX).
PresentDirection
Sets the order of the output of time. Possible values: any possible combinations of H, M and S symbols.
DigitsFormat
Display or not the leading "0", if a particular value is less than 10. Possible values: N, NN.
HideZero
Hide or not zero values. Possible values: TRUE, FALSE.

Default value is "Appearance=Words;PresentDirection=HMS;DigitsFormat=N;HideZero=TRUE".

Remarks

This property is necessary for localization of Video Uploader.

Here is an examples of the usage of this property. Say, you set the following value for it:

Appearance=Words;PresentDirection=HMS;DigitsFormat=N;HideZero=TRUE

Then all time values will be displayed like this:

5 minutes 30 seconds

or this:

1 hour 15 minutes 30 seconds

See Also

Reference