[MPlayer-users] states of mplayer

Dennis Aristow _den at bk.ru
Fri Sep 22 13:32:22 CEST 2006


Hi,

I am creating an graphical user interface for MPlayer.
I need to recognize the real state of player (playing, paused,...).
I cannot say, if the user clicks on play-button, this is playing-state now.
I start playing in some java-thread, that recodnize the output of mplayer.
This thread analyze each line of the output and it finds lines like these:
"Starting playback..."
"  =====  PAUSE  ====="
"Exiting... (Quit)"
"Exiting... (End of file)"

i can use this information in my programm.
My problem is: 
How can i recognize that mplayer has resumed playing
after it was paused?
Has somebody analogous problem?

Thanks





More information about the MPlayer-users mailing list