PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Multimedia>.Duration (Function)
In french: <Multimédia>.Durée
Returns the size of the multimedia file currently played (in milliseconds) in the Multimedia control.
Example
Reports and Queries
MyFile is string = "C:\My music\mysong.mp3"
MM_Multimedia1.Open(MyFile)
Info("The duration of this file is " + MM_Multimedia1.Duration() + " milliseconds")
Syntax
<Result> = <Multimedia control>.Duration()
<Result>: Integer
  • Duration (in milliseconds) of multimedia file,
  • 0 if an error occurs. To get the details of the error, use ErrorInfo.
<Multimedia control>: Control name
Name of the Multimedia control to be used.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment