ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Multimedia functions
  • Android specific features
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
MultimediaOpen (Function)
In french: MultimédiaOuvre
Opens a media file in a Multimedia control. The file is loaded in memory. To play the file, you must use MultimediaPlay.
Example
WINDEVReports and QueriesUniversal Windows 10 AppUser code (UMC)
MyFile is string = "C:\My music\mysong.mp3"
MultimediaOpen(MM_Multimedia1, MyFile)
Syntax
<Result> = MultimediaOpen(<Multimedia control> , <File to open>)
<Result>: Boolean
  • True if the file was successfully opened,
  • False if an error occurred. 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 open>: Character string
Name and path of media file to open.
Android Corresponds to:
  • the name and path of media file to play.
  • a URL (to play the video in streaming).
  • a resource name (file name + extension) added to the application via the generation wizard.
iPhone/iPad Corresponds to:
  • the name and path of media file to play.
  • a video URL on a server. Remark: the YouTube videos cannot be played.
  • a resource name (file name + extension) added to the application via the generation wizard.
Remarks
Android

Android specific features

  • By default, MultimediaPlay is a blocking function until the control is ready to play the file.
  • The MultimediaNonBlocking constant used with MultimediaPlay allows you to perform a non-locking load operation. In this case, the call to a Multimedia function (MultimediaPosition, ...) will fail as long as the media file is not loaded by the control.
  • The non-locking load operations are recommended when using media files not found on the device (online video for example).
Component: wd290obj.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help