[IMPLEMENTED] Dbus support

Have a tour of xt7-player features and make
suggestions about features you would like to be added to it.

[IMPLEMENTED] Dbus support

Postby sl1pkn07 on Wed Jun 29, 2011 12:29 pm

hello. is possible add suport for Dbus?

for example status (play, pause, etc), duration, codec stats, filename, tifle of vid/audio (id3), etc


greetings
sl1pkn07
 

Re: Dbus support

Postby kokoko3k on Thu Jun 30, 2011 6:01 pm

It is probably possible.
Anyway, can you explain me what would be useful for ?
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: Dbus support

Postby sl1pkn07 on Mon Jul 04, 2011 7:51 pm

scripting for chats. for exaple

for plasma miniplayer applet (for net radio)

[18:44] * sL1pKn07 Escucha: Hard Dance - D I G I T A L L Y - I M P O R T E D - are you ready for this! - Sesión: Hard Culture Episode 040 (July 2011) - with Luca Antolini - Desde: http://u11aw.di.fm:80/di_harddance_aacplus

http://pastebin.archlinux.fr/433033

for Qmmp player (audio player):

[18:51] * sL1pKn07 Escucha: Crow Song | Del Grupo: Girls Dead Monster | Del Album: Crow Song | Duración: 00:38/04:08 / [|---------] 15% | Meta: 1253kbps/44100Hz/FLAC | Player: Qmmp 0.6.0-svn

http://pastebin.archlinux.fr/433034 (complex script)

both use dbus for show information

need like this but for videos (name, codecs A/V, duration, position, etc)

mplayer (most GUI's like kplayer, smplayer) don't show this info via dbus (only stdout)


is possible add this?

greetings
sl1pkn07
 

Re: Dbus support

Postby kokoko3k on Tue Jul 05, 2011 2:44 pm

Understood, i'll try
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: Dbus support

Postby kokoko3k on Fri Jul 08, 2011 3:47 pm

Dbus export options are poorly documented by gambas devs, so i'm running into errors i can't understand.
Also, export functions seems to be implemented in gambas3 only, so maybe they are incomplete or unstable (gb3 is still in alpha stage).

Meantime, i emailed a question to Benoît Minisini and i'm waiting for him to clear something about the issue.
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: Dbus support

Postby kokoko3k on Sat Jul 16, 2011 10:38 am

I just received a reply from Benoît Minisini.
Gambas 3, revision #3938 will fix a bug that prevents the program to exit when using dbus connections by implementing DbusConnection.Unregister() method, so expect dbus to be supported in the upcoming version of xt7-player.
Of course, you will need to upgrade your gambas libraries ; xt7 will check if that method exists prior to register itself to the dbus subsystem.
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: Dbus support

Postby kokoko3k on Mon Aug 29, 2011 11:22 am

Dbus is up and working in the upcoming version and several properties will be exported:
org.gambas.xt7.player -> xt7/org.gambas.xt7.player.dbusproperties/
Property FullPath As String
Property FullPathPlaying As String
Property Length As String
Property Size As String
Property Type As String
Property AudioCodec As String
Property AudioBitrate As String
Property AudioRate As String
Property Channels As String
Property VideoCodec As String
Property VideoBitrate As String
Property VideoFps As String
Property Width As String
Property Height As String
Property VideoOutWidth As String
Property VideoOutHeight As String
Property Author As String
Property Artist As String
Property Genre As String
Property Album As String
Property TrackNo As String
Property Title As String
Property Name As String
Property Comment As String
Property Comments As String
Property MyYear As String
Property CreationDate As String


New xt7 will strictly requires Gambas version 2.99.2

-EDIT-
Unfortunately there is a stupid thing which prevents xt7 from registering to dbus, just a typo in the code.
Next version will correct it.
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: Dbus support

Postby kokoko3k on Wed Nov 09, 2011 11:17 am

Sorry for the delay, new version 2.9.1019 is out.
As long as the property described above, new methods are available:

doStop() #stop playing
doTogglePause() #pause/unpause
doNext() #next track
doPrevious() #previous track
doHideMain() #hide main window
doShowMain() #show main window
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: [IMPLEMENTED] Dbus support

Postby kokoko3k on Sun Jan 08, 2012 2:01 am

...in the process of trying to implement mpris, all the properties mentioned may not be available anymore or available under differennt dbus interfaces.
This happens in the latest git release.
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm


Return to Features and requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron

SourceForge.net Logo