ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Multimedia functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
MultimediaDuration (Function)
In french: MultimédiaDurée
AjaxNot available
Returns the size of the media file currently played (in milliseconds) in the Multimedia control.
WEBDEV - Browser code Note: Depending on the video type and browser configuration, this function may not be supported.. In this case, its use will have no effect but no error will be triggered.
Example
WINDEVReports and QueriesUser code (UMC)
MyFile is string = "C:\My music\mysong.mp3"
MultimediaOpen(MM_Multimedia1, MyFile)
Info("The duration of this file is " + MultimediaDuration(MM_Multimedia1) + " milliseconds")
Syntax
<Result> = MultimediaDuration(<Multimedia control>)
<Result>: Integer
  • Duration (in milliseconds) of media file,
  • 0 if an error occurs. To get more details on the error, use ErrorInfo.
WEBDEV - Browser code Note: The ErrorInfo function is not available.
<Multimedia control>: Control name
Name of the Multimedia control to be used.
Component: wd300obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help