pycousin / gnome-mplayer

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

How to set/get time #424

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As in the console to get the time at which stopped playing? How do I set across 
the console while playing? Sorry for my English.

Original issue reported on code.google.com by mr.alif...@gmail.com on 17 Jul 2010 at 8:55

GoogleCodeExporter commented 8 years ago
Currently you can't. However, if this is a important feature I could add it to 
the dbus interface... read DOCS/tech/dbus.txt in the source tar file for more 
info about this functionality.

Original comment by kdeko...@gmail.com on 18 Jul 2010 at 1:13

GoogleCodeExporter commented 8 years ago
Thanks, I read it, but there is no function I need. If possible, add this 
feature in the new release. Thanks in advance.

Original comment by mr.alif...@gmail.com on 18 Jul 2010 at 9:23

GoogleCodeExporter commented 8 years ago
While not documented there is a the function GetTime which returns the current 
position in seconds and then there is the command Seek which sets the current 
position in seconds.

Original comment by kdeko...@gmail.com on 18 Jul 2010 at 1:04

GoogleCodeExporter commented 8 years ago
That's good, but can you show how to do this? A dbus?

Original comment by mr.alif...@gmail.com on 18 Jul 2010 at 8:58

GoogleCodeExporter commented 8 years ago
Seek to 400 seconds into the media file

dbus-send  --type=signal / com.gnome.mplayer.Seek double:400.0

Get the current position

dbus-send --print-reply --type=method_call --dest=com.gnome.mplayer / 
com.gnome.mplayer.GetTime

Original comment by kdeko...@gmail.com on 20 Jul 2010 at 5:52

GoogleCodeExporter commented 8 years ago
Thank you, this is what I needed. Please tell me how to get the name of playing 
the file?

Original comment by mr.alif...@gmail.com on 20 Jul 2010 at 7:50

GoogleCodeExporter commented 8 years ago
This is not supported in 0.9.9.2, but I have a patch in SVN that enables this.

dbus-send --print-reply --type=method_call --dest=com.gnome.mplayer / 
com.gnome.mplayer.GetURI

Original comment by kdeko...@gmail.com on 20 Jul 2010 at 8:18