Re: [Muine] [PATCH] InfoServer
- From: Alexander Isacson <alexander isacson info>
- To: muine-list gnome org
- Subject: Re: [Muine] [PATCH] InfoServer
- Date: Tue, 21 Sep 2004 14:32:37 +0200
Hello list!
Whatever happened to this? I really love this idea and I also remembered
someone writing a small http server to access muine's playlist etc. That
would be the best!
--
Alexander Isacson
Sam Stephenson wrote:
Attached patch listens for TCP connections on a user-specified port
and sends a simple XML document containing player state information.
The port number can be changed at runtime via gconf, and you can
enable and disable the server with gconf, too.
I think this is a simple and useful way to get information about Muine
from other applications, at least until DBUS support is added.
Here is some sample output, retrieved using netcat:
$ nc localhost 6588
<player state="paused"><song><filename>/home/sam/Music/Mark Farina -
San Francisco Sessions vol. 1/02 Rob Mello -
Happiness.mp3</filename><title>Happiness</title><artist>Rob
Mello</artist><album>San Francisco Sessions - Volume
1</album><duration>3:46</duration></song><position>0:03</position></player>
I haven't used C# or .NET before, so I must apologize if my code seems
messy. Hopefully someone will find this useful.
--
Sam Stephenson
sstephenson gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]