PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Using the MultimediaPlay function
  • Specific features for Android
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 15 and later
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code Note: Depending on the video type and on the browser configuration, this function may not be supported. In this case, its use will have no effect but no error will be triggered.
New in version 15
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code Note: Depending on the video type and on the browser configuration, this function may not be supported. In this case, its use will have no effect but no error will be triggered.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code Note: Depending on the video type and on the browser configuration, this function may not be supported. In this case, its use will have no effect but no error will be triggered.
Versions 17 and later
Android This function is now available for the Android applications.
New in version 17
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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
WINDEVWINDEV MobileReports and QueriesUniversal Windows 10 AppUser code (UMC)
IF MultimediaPlay(MM_Multimedia1, "C:\My music\mysong.mp3") = False THEN
Error("Error while playing the file")
END
Windows Mobile
IF MultimediaPlay(MM_Multimedia1, ...
"\My Documents\My music\mysong.mp3") = False THEN
Error("Error while playing the file")
END
Syntax
<Result> = MultimediaPlay(<Name of Multimedia Control> [, <Name of File to Play> [, <Options>]])
<Result>: Boolean
  • True if the file was successfully played,
  • False otherwise. To find out the error details, use ErrorInfo.
WEBDEV - Browser code Note: ErrorInfo is not available.
<Name of Multimedia Control>: Character string (with or without quotes)
Name of Multimedia control used to play the multimedia file.
<Name of 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.
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.
Versions 15 and later
WEBDEV - Browser code This parameter is not available. The file associated with the control is automatically used.
New in version 15
WEBDEV - Browser code This parameter is not available. The file associated with the control is automatically used.
WEBDEV - Browser code This parameter is not available. The file associated with the control is automatically used.
Versions 17 and later
Android Corresponds to:
  • the name and path of multimedia 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.
New in version 17
Android Corresponds to:
  • the name and path of multimedia 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.
Android Corresponds to:
  • the name and path of multimedia 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.
Versions 18 and later
iPhone/iPad Corresponds to:
  • the name and path of multimedia file to play.
  • a video URL on a server. Note: the YouTube videos cannot be played.
  • a resource name (file name + extension) added to the application via the generation wizard.
New in version 18
iPhone/iPad Corresponds to:
  • the name and path of multimedia file to play.
  • a video URL on a server. Note: the YouTube videos cannot be played.
  • a resource name (file name + extension) added to the application via the generation wizard.
iPhone/iPad Corresponds to:
  • the name and path of multimedia file to play.
  • a video URL on a server. Note: the YouTube videos cannot be played.
  • a resource name (file name + extension) added to the application via the generation wizard.
<Options>: Integer constant
Versions 17 and later
Android Option for reading the file:
MultimediaNonBlockingThe loading of the multimedia file is a non-locking operation.
New in version 17
Android Option for reading the file:
MultimediaNonBlockingThe loading of the multimedia file is a non-locking operation.
Android Option for reading the file:
MultimediaNonBlockingThe loading of the multimedia file is a non-locking operation.
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.
Versions 18 and later
iPhone/iPad Several Multimedia controls can be created in the same window. However, several videos cannot be played in parallel by MultimediaPlay.
New in version 18
iPhone/iPad Several Multimedia controls can be created in the same window. However, several videos cannot be played in parallel by MultimediaPlay.
iPhone/iPad Several Multimedia controls can be created in the same window. However, several videos cannot be played in parallel by MultimediaPlay.
Versions 17 and later
Android

Specific features for Android

  • By default, MultimediaPlay is a locking function until the control is ready to play the file.
  • The MultimediaNonBlocking constant is used to perform a non-locking load operation. In this case, the call to a Multimedia function (MultimediaPosition, ...) will fail as long as the multimedia file is not loaded by the control.
  • The non-locking load operations are recommended when using multimedia files not found on the device (online video for example).
  • In Android, all the formats supported by the OS can be played (wav, mp3, 3gp, ogg, ...). A summary of the supported audio and video files is available from the following address: http://developer.android.com/guide/appendix/media-formats.html. Note: the wav files in 32-bit format are not supported by Android.
New in version 17
Android

Specific features for Android

  • By default, MultimediaPlay is a locking function until the control is ready to play the file.
  • The MultimediaNonBlocking constant is used to perform a non-locking load operation. In this case, the call to a Multimedia function (MultimediaPosition, ...) will fail as long as the multimedia file is not loaded by the control.
  • The non-locking load operations are recommended when using multimedia files not found on the device (online video for example).
  • In Android, all the formats supported by the OS can be played (wav, mp3, 3gp, ogg, ...). A summary of the supported audio and video files is available from the following address: http://developer.android.com/guide/appendix/media-formats.html. Note: the wav files in 32-bit format are not supported by Android.
Android

Specific features for Android

  • By default, MultimediaPlay is a locking function until the control is ready to play the file.
  • The MultimediaNonBlocking constant is used to perform a non-locking load operation. In this case, the call to a Multimedia function (MultimediaPosition, ...) will fail as long as the multimedia file is not loaded by the control.
  • The non-locking load operations are recommended when using multimedia files not found on the device (online video for example).
  • In Android, all the formats supported by the OS can be played (wav, mp3, 3gp, ogg, ...). A summary of the supported audio and video files is available from the following address: http://developer.android.com/guide/appendix/media-formats.html. Note: the wav files in 32-bit format are not supported by Android.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Android wd230android.jar
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment