PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 multimedia file currently played in the Multimedia control.
Example
Reports and Queries
MonFichier is string = "C:\Ma musique\mysong.mp3"
MultimediaPlay(MM_Multimédia1, MonFichier)
// Positionne à 10 secondes du début du fichier
MultimédiaPosition(MM_Multimédia1, 10000)
MultimediaStop(MM_Multimédia1)
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 the details of the error, use ErrorInfo.
<Multimedia control>: Control name
Name of Multimedia control to use.
<New position>: Integer ou Duration
New position in the multimedia file, expressed in milliseconds. This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • Versions 23 and later
    the duration in a readable format (e.g., 1 s or 10 ms).
    New in version 23
    the duration in a readable format (e.g., 1 s or 10 ms).
    the duration in a readable format (e.g., 1 s or 10 ms).
Component: wd270obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment