wxMediaCtrl is a class for displaying types of media, such as videos, audio files, natively through native codecs.
Obtains the length - the total amount of time the movie has in milliseconds.
Obtains the current position in time within the movie in milliseconds.
Obtains the state the playback of the media is in -
Gets the volume of the media from a 0.0 to 1.0 range. Note that due to rounding and other errors this may not be the exact value sent to set_media_volume.
Loads the file that fileName refers to. Returns false if loading fails.
Loads the location that uri refers to. Note that this is very implementation-dependant, although HTTP URI/URLs are generally supported, for example. Returns false if loading fails.
Pauses playback of the movie.
Resumes playback of the movie.
Seeks to a position within the movie.
Sets the volume of the media from a 0.0 to 1.0 range to that referred by dVolume. 1.0 represents full volume, while 0.5 represents half (50 percent) volume, for example. Note that this may not be exact due to conversion and rounding errors, although setting the volume to full or none is always exact. Returns true if successful.
A special feature to wxMediaCtrl. Applications using native toolkits such as QuickTime usually have a scrollbar, play button, and more provided to them by the toolkit. By default wxMediaCtrl does not do this. However, on the directshow and quicktime backends you can show or hide the native controls provided by the underlying toolkit at will using ShowPlayerControls. Simply calling the function with default parameters tells wxMediaCtrl to use the default controls provided by the toolkit. The function takes a wxMediaCtrlPlayerControls enumeration as follows:
Stops the media.