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
MultimediaPosition (Function)
In french: MultimediaPosition
Returns or modifies the current position of the media file currently played 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"
MultimediaPlay(MM_Multimedia1, MyFile)
// Positions 10 seconds after the beginning of file
MultimédiaPosition(MM_Multimedia1, 10000)
MultimediaStop(MM_Multimedia1)
Syntax

Finding out the position in the file Hide the details

<Result> = MultimediaPosition(<Multimedia control>)
<Result>: Integer
Current position in the file, expressed in milliseconds.
<Multimedia control>: Control name
Name of the Multimedia control to be used.

Modifying the position in the file Hide the details

<Result> = MultimediaPosition(<Multimedia control> , <New position>)
<Result>: Boolean
  • True if the position was set,
  • False otherwise. To get more details on the error, use ErrorInfo.
WEBDEV - Browser code Remark: ErrorInfo is not available.
<Multimedia control>: Control name
Name of Multimedia control to use.
<New position>: Integer ou Duration
New position in the media file, expressed in milliseconds. This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s or 10 ms).
Component: wd290obj.dll
Versión mínima requerida
  • Versión 12
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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