![]() This event is broadcast regularly while the multimedia file is playing. At the point this event is launched the VideoInfo and AudioInfo records will be populated This event is broadcast immediately after mplayer finishes initialising the file to be played. #Download mplayer codecs fullSee for a full list of available commands Procedure SendMPlayerCommand(Cmd: string) Īdditional commands can be sent directly to mplayer, and the results can be queried with the OnFeedback event. Record containing Codec, SampleRate, Bitrate etc. Record containing Codec, bitrate, width, height etc Used to set or retrieve the current position of the video file in seconds.Ĭurrent video position is queried every half second, so during playback at normal speed, there is only a half second accuracy. The length of the loaded video file in seconds. mplayer allows values between 0.1 and 100 (i.e. The filename of the last image grabbed is also passed as a parameter to the OnGrabImage event. Under windows, optimal results were returned with the direct3d renderer (-vo direct3d) In testing, success of this call is dependent upon a combination of the codec mplayer is using, and the renderer being used. The folder you want captured image grabs to be saved in. Is mplaying running with a file loaded? There is only a small window in time between the file stopping and mplayer itself stopping running. This instructs mplayer to loop the video. After this is called, many of the properties will no longer be available. This stops the video file playing, which in turn stops mplayer. mplayer will automatically start playing the file. This initialises mplayer, putting it into slave mode with the file loaded. See for a full set of available parametersĪll the above must be configured correct before this command is called. Any additional parameters to be sent to mplayer before the multimedia file is initialised. Either populated by FindMPlayerPath, or programmatically If found, then sets MPlayerPath and returns True TMPlayerControl searches for mplayer in the PATH or in a subfolder of the application folder called "mplayer". The following Methods and Properties are available: SendMPlayerCommand is not needed for simple video playback, and is made available for advanced mplayer features.įor a full list of available slave comamnds visit or enter the following at the command prompt. after calling Play) by using SendMPlayerCommand(Cmd: string) Slave commands can be sent directly to mplayer after multimedia is loaded (i.e. TMPlayerControl controls mplayer in slave mode. See for a full list of available parameters. Additional parameters can be set via StartParam. TMPlayerControl sets a minor selection of mplayer properties at run time. TMPlayerControl only implements a very small set of mplayer features: Play, Stop, Pause, Loop, Volume, Duration, Position and GrabImage, essentially focusing on anything required for multimedia playback. Either installed with the mplayer folder being in the PATH environment variable, or with the MPlayerPath property pointing to the mplayer executable. Mplayer must be available on the end user system. The control can be dropped on any form, and incorporates the video playback area.Īdditional controls such as Trackbars for progess/volume and buttons for playback control need to be added manually, with their values being set during the appropriate events. #Download mplayer codecs installIt is recommended that the end-user install mplayer on their system instead of it being distributed with your application. However mplayer uses FFmpeg and the legal licensing warning at could also apply (see last question under Mini-Patent FAQ). Warning: mplayer can be easily bundled with your application installation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |