Recent

Author Topic: TMplayerControl slideshow  (Read 3793 times)

user5

  • Sr. Member
  • ****
  • Posts: 415
TMplayerControl slideshow
« on: April 27, 2016, 06:08:07 am »
Does anyone know how to play and pause a picture file using MPlayer? The first pair of code lines below has worked for me but not consistently. The problem is that the player must play at least one frame before pausing and since there's only one frame, the image then disappears. The third line below works fine from the command window but I can't get it to work in a Lazarus program as shown in the last code line.

Code: Pascal  [Select][+][-]
  1. mplayercontrol2.play;
  2. MPlayerControl2.Paused := true;
  3.  
  4. mplayer fps=0 -idle -fixed-vo bird1.bmp
  5.  
  6. mplayercontrol2.SendMPlayerCommand('fps=0 -idle -fixed-vo bird1.bmp');

user5

  • Sr. Member
  • ****
  • Posts: 415
Re: TMplayerControl slideshow
« Reply #1 on: April 28, 2016, 03:42:15 am »
I found a solution to my mplayer problem in case anyone's interested. I was trying to run multiple TMPlayerControl panels without ever actually showing their panels but I realized that this isn't possible, at least for me. Each panel in succession has to be made visible, loaded, then 'play-paused'.

After they're all ready they can then be played again at the same time. With that scenario, even a picture can be played and then quickly paused so that it remains visible during the main playback.

 

TinyPortal © 2005-2018