This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface org.mpris.MediaPlayer2.Player { | |
methods: | |
Next(); | |
Previous(); | |
Pause(); | |
PlayPause(); | |
Stop(); | |
Play(); | |
Seek(in x Offset); | |
SetPosition(in o TrackId, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node /org/mpris/MediaPlayer2 { | |
interface org.kde.amarok.App { | |
methods: | |
ShowOSD(); | |
LoadThemeFile(in s arg_0); | |
signals: | |
properties: | |
}; | |
interface org.kde.amarok.Mpris2Extensions.Player { | |
methods: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# vim: set sts=4 sw=4 et tw=0: | |
# | |
# Author(s): Rohan Garg <[email protected]> | |
# License: GPL (2011) | |
# | |
import players.base | |
from gi.repository import Gio, GLib | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shadeslayer@saphira ~/amazing-horse ±amarok⚡ » python2.7 | |
Python 2.7.1+ (r271:86832, Mar 24 2011, 00:37:39) | |
[GCC 4.5.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from players import amarok | |
>>> print player.status() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'player' is not defined | |
>>> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node /Player { | |
interface org.freedesktop.MediaPlayer { | |
methods: | |
Pause(); | |
Stop(); | |
Play(); | |
Prev(); | |
Next(); | |
Repeat(in b arg_0); | |
@com.trolltech.QtDBus.QtTypeName.Out0("Mpris1::Status") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# vim: set sts=4 sw=4 et tw=0: | |
# | |
# Author(s): Rohan Garg <[email protected]> | |
# License: GPL (2011) | |
# | |
import players.base | |
#import dbus | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# vim: set sts=4 sw=4 et tw=0: | |
# | |
# Author(s): Rohan Garg <[email protected]> | |
# License: MIT (2011) | |
# | |
import players.base | |
import time | |
from gi.repository import Gio, GLib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************** | |
* Author: Rohan Garg <[email protected] * | |
* License: MIT ( 2011 ) * | |
* client.c * | |
********************************************/ | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************* * Author: Rohan Garg <[email protected]> * * License: MIT ( 2011 ) * * client.c [ Experiment 6 ] * | |
*********************************************/ | |
#include<stdio.h> | |
#include<netinet/in.h> | |
#include<sys/types.h> | |
#include<sys/socket.h> | |
#include<sys/errno.h> | |
#include<string.h> | |
#include<arpa/inet.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(scroll-bar-mode nil) | |
'(tooltip-mode nil) | |
'(menu-bar-mode nil) | |
'(tool-bar-mode nil) | |
'(x-select-enable-clipboard t)) |
OlderNewer