ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
<Multimedia>.Duration (Function)
In french: <Multimédia>.Durée
AjaxNot available
Returns the size of the media file currently played (in milliseconds) in the Multimedia control.
Example
Reports and Queries
MonFichier is string = "C:\Ma musique\mysong.mp3"
MM_Multimédia1.Ouvre(MonFichier)
Info("La durée de ce fichier est " + MM_Multimédia1.Durée() + " millisecondes")
Syntax
<Result> = <Multimedia control>.Duration()
<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 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help