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.
  • Using the MultimediaPlay function
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
MultimediaPlay (Function)
In french: MultimédiaJoue
Plays a multimedia file in a 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"
IF MultimediaPlay(MM_Multimedia1, MyFile) = False THEN
Error("Error while playing the file")
END
Syntax
<Result> = MultimediaPlay(<Multimedia control> [, <File to play>])
<Result>: Boolean
  • True if the file was successfully played,
  • False otherwise. For more details about the error, use the ErrorInfo function.
<Multimedia control>: Control name
Name of Multimedia control used to play the multimedia file.
<File to play>: Optional character string
Name and path of the multimedia file to play.
If this parameter is specified, the multimedia file is loaded in memory and played. The multimedia file is always played from the beginning.
If this parameter is not specified or if it corresponds to an empty string (""), the file associated with the control (by MultimediaOpen for example) is automatically used.
Remarks

Using the MultimediaPlay function

MultimediaPlay can be used:
  • to load a multimedia file in memory and to play this file.
  • to play a multimedia file loaded by MultimediaOpen.
  • to restart a file paused by MultimediaPause.
    Remark: To pause the playback of a multimedia file, it must have been started via MultimediaOpen followed by MultimediaPlay, specifying only the name of the control.
Component: wd260obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment