ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Multimedia functions
  • Using the MultimediaPlay function
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
MultimediaPlay (Function)
In french: MultimédiaJoue
AjaxNot available
Plays a media file in a Multimedia control.
Example
Reports and Queries
MonFichier is string = "C:\Ma musique\mysong.mp3"
IF MultimediaPlay(MM_Multimédia1, MonFichier) = False THEN
	Error("Erreur de lecture du fichier")
END
Syntax
<Result> = MultimediaPlay(<Multimedia control> [, <File to play>])
<Result>: Boolean
  • True if the file was successfully played,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Multimedia control>: Control name
Name of Multimedia control used to play the media file.
<File to play>: Optional character string
Name and path of the media file to play.
If this parameter is specified, the media file is loaded in memory and played. The media file is always played from the beginning.
If this parameter is not specified or is 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 media file in memory and to play this file.
  • to play a media file loaded by MultimediaOpen.
  • to restart a file paused by MultimediaPause.
    Note: To pause the playback of a media file, the media file must have been started via the MultimediaOpen function followed by the MultimediaPlay function, specifying only the field name..
Component: wd300obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help