PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
<Multimedia>.Position (Function)
In french: <Multimédia>.Position
Returns or modifies the current position of the multimedia file currently played in the Multimedia control.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVUniversal Windows 10 AppUser code (UMC)
MyFile is string = "C:\My music\mysong.mp3"
// For Windows Mobile:
// MyFile is string = "\My Documents\My music\mysong.mp3"
 
MM_Multimedia1.Play(MyFile)
// Positions 10 seconds after the beginning of file
MM_Multimedia1.Position(10000)
MM_Multimedia1.Stop()
Syntax

Finding out the position in the file Hide the details

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

Modifying the position in the file Hide the details

<Result> = <Multimedia control>.Position(<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: wd260obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment