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.
Example
WINDEVUser code (UMC)
MonFichier is string = "C:\Ma musique\mysong.mp3"
MultimediaOpen(MM_Multimédia1, MonFichier)
Info("La durée de ce fichier est " + MultimediaDuration(MM_Multimédia1) + " millisecondes")
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.
<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: 03/28/2025

Send a report | Local help