ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Multimedia functions
  • Using the MultimediaPlay function
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
<Multimedia>.Play (Function)
In french: <Multimédia>.Joue
Plays a multimedia file in a Multimedia control.
Example
WINDEVUniversal Windows 10 AppUser code (UMC)
MyFile is string = "C:\My music\mysong.mp3"
IF MM_Multimedia1.Play(MyFile) = False THEN
Error("Error while playing the file")
END
Syntax
<Result> = <Multimedia control>.Play([<Name of 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.
<Name of 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 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

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

Last update: 06/19/2023

Send a report | Local help