m4myo / python-mplayer

Automatically exported from code.google.com/p/python-mplayer
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Ability to to see if player is finished playing current file. #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to be able to see on the Player class if the player is done playing 
current file or list.

Actually, even better would be if there was a callback that fires when the 
player is done playing. That would save me the trouble of checking periodically 
if the player is done.

Original issue reported on code.google.com by ad.hoc.n...@gmail.com on 1 Apr 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Hi, you can already do that with the current version:

1. Make MPlayer more verbose (add '-msglevel global=6' to args)
2. Connect a handler (callback) to Player.stdout which checks for 'EOF code:' 
string

For more info, see gtk2.py or qt4.py. Or better yet, use QPlayerView (for Qt) 
or GtkPlayerView (for GTK).

Original comment by daru...@gmail.com on 2 Apr 2013 at 5:31