webmastak / gnome-shell-extensions-mediaplayer

A mediaplayer indicator for GNOME Shell 3.18+.
https://extensions.gnome.org/extension/55/media-player-indicator/
GNU General Public License v2.0
376 stars 106 forks source link

Add support for xt7-player #27

Closed eloaders closed 12 years ago

eloaders commented 12 years ago

if possible, he asked me to add xt7-player.

xt7-player has support for dbus

qdbus org.gambas.xt7.player /xt7

method QString org.freedesktop.Introspectable.Introspect() method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name) method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name) method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value) property readwrite QString org.gambas.xt7.player.dbusproperties.Album property readwrite QString org.gambas.xt7.player.dbusproperties.Artist property readwrite QString org.gambas.xt7.player.dbusproperties.AudioBitrate property readwrite QString org.gambas.xt7.player.dbusproperties.AudioCodec property readwrite QString org.gambas.xt7.player.dbusproperties.AudioRate property readwrite QString org.gambas.xt7.player.dbusproperties.Author property readwrite QString org.gambas.xt7.player.dbusproperties.Channels property readwrite QString org.gambas.xt7.player.dbusproperties.Comment property readwrite QString org.gambas.xt7.player.dbusproperties.Comments property readwrite QString org.gambas.xt7.player.dbusproperties.CreationDate property readwrite QString org.gambas.xt7.player.dbusproperties.FullPath property readwrite QString org.gambas.xt7.player.dbusproperties.FullPathPlaying property readwrite QString org.gambas.xt7.player.dbusproperties.Genre property readwrite QString org.gambas.xt7.player.dbusproperties.Height property readwrite QString org.gambas.xt7.player.dbusproperties.Length property readwrite QString org.gambas.xt7.player.dbusproperties.MyYear property readwrite QString org.gambas.xt7.player.dbusproperties.Name property readwrite QString org.gambas.xt7.player.dbusproperties.Size property readwrite QString org.gambas.xt7.player.dbusproperties.Title property readwrite QString org.gambas.xt7.player.dbusproperties.TrackNo property readwrite QString org.gambas.xt7.player.dbusproperties.Type property readwrite QString org.gambas.xt7.player.dbusproperties.VideoBitrate property readwrite QString org.gambas.xt7.player.dbusproperties.VideoCodec property readwrite QString org.gambas.xt7.player.dbusproperties.VideoFps property readwrite QString org.gambas.xt7.player.dbusproperties.VideoOutHeight property readwrite QString org.gambas.xt7.player.dbusproperties.VideoOutWidth property readwrite QString org.gambas.xt7.player.dbusproperties.Width method void org.gambas.xt7.player.dbusproperties.Clear() method void org.gambas.xt7.player.dbusproperties.doHideMain() method void org.gambas.xt7.player.dbusproperties.doNext() method void org.gambas.xt7.player.dbusproperties.doPrevious() method void org.gambas.xt7.player.dbusproperties.doShowMain() method void org.gambas.xt7.player.dbusproperties.doStop() method void org.gambas.xt7.player.dbusproperties.doTogglePause()

ppa: https://launchpad.net/~eloaders/+archive/xt7-player homepage: http://xt7-player.sourceforge.net/xt7forum/index.php

eonpatapon commented 12 years ago

Hello,

This player implements its own dbus interface. To be compatible with this extension it must implements the MPRIS specification too

See http://www.mpris.org/2.1/spec/

kokoko3k commented 12 years ago

I asked benoit minisini to add the ability to register a gambas app to a path different from org.gambas.appname, he replied that he doesn't understand why mpris devs choose "to force applications to use an unique bus name like that", but maybe a future gambas version will make possible to change the 'entry point'

eonpatapon commented 12 years ago

Well, it's not a matter of just changing the dbus name of org.gambas.xt7.player, but adding a new interface with properties and methods that follow the MPRIS spec

kokoko3k commented 12 years ago

I can implement those properties/methods with very little work, but unfortunately i've no control over the dbus name. So, if i understood properly mpris spec, Is the name my real blocking problem.

grawity commented 12 years ago

Just for the record, a program can claim multiple bus names (custom interface, MPRIS, MPRIS2...)

Both org.gambas.xt7.player and org.mpris.MediaPlayer2.xt7 at once would be okay, and many other players already do that.