AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones multimedia
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 media file currently played (in milliseconds) in the Multimedia control.
WEBDEV - Browser code Remark: Depending on the video type and on the 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 QueriesUniversal Windows 10 AppUser code (UMC)
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 media file,
  • 0 if an error occurs. To get more details on the error, use ErrorInfo.
WEBDEV - Browser code Remark: ErrorInfo is not available.
<Multimedia control>: Control name
Name of the Multimedia control to be used.
Component: wd290obj.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 19/06/2023

Señalar un error o enviar una sugerencia | Ayuda local