Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - david_a_dawson

Pages: [1] 2 3 ... 6
Users / Re: Automatic adding Internet Radio streams to LinuxMCE
« on: January 12, 2014, 09:38:30 pm »
hello, I run with show|add, it starts, thinks for a moment, and quits with no results.....

Developers / Re: MPD integration
« on: January 12, 2014, 09:12:20 pm »
Hehe. Thanks mate. ;D

Developers / Re: MPD integration
« on: January 12, 2014, 08:57:29 pm »
Thanks dude! Comprehensive.

I'm probably not fully understanding, but last question.  Would it make sense for there to be a mopidy plugin that controls mopidy instances on the core, and for it to the instruct media directors to receive and play their streams?
So there isn't a mopidy player per se.

Developers / Re: MPD integration
« on: January 12, 2014, 08:11:02 pm »
Fairy nuff.
I see the docs for media plugins, all makes sense.

The player portion seems expected to run on a media director. If there were to be only one of these per user, rather than per MD, with the audio routed to where they were, what do you think the best approach would be?

Users / Re: Automatic adding Internet Radio streams to LinuxMCE
« on: January 12, 2014, 03:26:58 pm »
Should I assume that others are getting a flat list for the radio stations?  I'm definitely getting a nested structure.

Users / Re: Automatic adding Internet Radio streams to LinuxMCE
« on: January 12, 2014, 03:25:14 pm »
I've tried running this, but nothing comes through.

I'm in the UK, this might make a difference if the xml returned is a bit different from what is expected.

A sample of the XML returned by calling

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1">
<title>United Kingdom</title>

<outline type="link" text="National Networks" URL="" guide_id="c459441"/>
<outline type="link" text="Aberdeen" URL="" guide_id="r101556"/>
<outline type="link" text="Ashkirk" URL="" guide_id="r101561"/>
<outline type="link" text="Ayr" URL="" guide_id="r101563"/>
<outline type="link" text="Belfast" URL="" guide_id="r101355"/>
<outline type="link" text="Birmingham" URL="" guide_id="r101353"/>

Visiting (national radio) gives :

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1">
<title>UK National</title>

<outline text="All Stations" key="stations">
<outline type="audio" text="talkSPORT (London)" URL="" bitrate="32" reliability="98" guide_id="s17077" subtext="Newcastle v Man City" genre_id="g2723" formats="mp3" show_id="p570635" item="station" image="" current_track="Newcastle v Man City" now_playing_id="s17077" preset_id="s17077"/>
<outline type="audio" text="Classic FM (London)" URL="" bitrate="128" reliability="98" guide_id="s8439" subtext="Laurence Llewelyn Bowen" genre_id="g5" formats="mp3" show_id="p193011" item="station" image="" current_track="Laurence Llewelyn Bowen" now_playing_id="s8439" preset_id="s8439"/>
<outline type="audio" text="Gold (London)" URL="" bitrate="128" reliability="97" guide_id="s45622" subtext="Eamonn Kelly" genre_id="g2755" formats="mp3" show_id="p193421" item="station" image="" current_track="Eamonn Kelly" now_playing_id="s45622" preset_id="s45622"/>
<outline text="Explore UK National" key="related">
<outline type="link" text="Absolute Radio" URL="" guide_id="a38252"/>
<outline type="link" text="BBC" URL="" guide_id="c467491"/>
<outline type="link" text="BFBS" URL="" guide_id="a38328"/>
<outline type="link" text="Capital FM" URL="" guide_id="a38250"/>
<outline type="link" text="Heart" URL="" guide_id="a38249"/>
<outline type="link" text="Kiss" URL="" guide_id="a38357"/>
<outline type="link" text="Magic" URL="" guide_id="a38356"/>
<outline type="link" text="Real Radio" URL="" guide_id="a38247"/>
<outline type="link" text="Rock Radio" URL="" guide_id="a38248"/>
<outline type="link" text="Smooth Radio" URL="" guide_id="a38246"/>
<outline type="link" text="XFM" URL="" guide_id="a38316"/>

Visiting (BBC radio), gives

Code: [Select]

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1">

<outline text="Local Stations (5)" key="local">
<outline type="audio" text="BBC Asian Network (London)" URL="" bitrate="48" reliability="92" guide_id="s44490" subtext="Asian Network Gold" genre_id="g334" formats="wma" show_id="p482318" item="station" image="" current_track="Asian Network Gold" now_playing_id="s44490" preset_id="s44490"/>
<outline type="audio" text="BBC Radio 1Xtra (London)" URL="" bitrate="48" reliability="95" guide_id="s20277" subtext="Adele Roberts" genre_id="g18" formats="wma" show_id="p397082" item="station" image="" current_track="Adele Roberts" now_playing_id="s20277" preset_id="s20277"/>
<outline type="audio" text="BBC Radio 4 Extra (London)" URL="" bitrate="48" reliability="96" guide_id="s6839" subtext="Miss Marple" genre_id="g209" formats="wma" show_id="p570432" item="station" image="" current_track="Miss Marple" now_playing_id="s6839" preset_id="s6839"/>
<outline type="audio" text="BBC Radio 5 live sports extra (London)" URL="" bitrate="48" reliability="93" guide_id="s50459" subtext="Rugby Union" genre_id="g323" formats="wma" show_id="p182611" item="station" image="" current_track="Rugby Union" now_playing_id="s50459" preset_id="s50459"/>
<outline type="audio" text="BBC Radio 6 Music (London)" URL="" bitrate="48" reliability="95" guide_id="s44491" subtext="Guy Garvey&apos;s Finest Hour" genre_id="g111" formats="wma" show_id="p116824" item="station" image="" current_track="Guy Garvey&apos;s Finest Hour" now_playing_id="s44491" preset_id="s44491"/>
<outline text="All Stations" key="stations">
<outline type="audio" text="BBC Radio 2 (London)" URL="" bitrate="48" reliability="97" guide_id="s24940" subtext="Elaine Paige" genre_id="g3" formats="wma" show_id="p180480" item="station" image="" current_track="Elaine Paige" now_playing_id="s24940" preset_id="s24940"/>
<outline type="audio" text="BBC Radio 5 live (London)" URL="" bitrate="48" reliability="94" guide_id="s24943" subtext="5 Live Sport" genre_id="g2723" formats="wma" show_id="p857" item="station" image="" current_track="5 Live Sport" now_playing_id="s24943" preset_id="s24943"/>
<outline type="audio" text="BBC Radio 3 (London)" URL="" bitrate="48" reliability="98" guide_id="s24941" subtext="The Early Music Show" genre_id="g5" formats="wma" show_id="p38676" item="station" image="" current_track="The Early Music Show" now_playing_id="s24941" preset_id="s24941"/>
<outline type="audio" text="BBC Radio 4 LW (Birmingham)" URL="" bitrate="48" reliability="94" guide_id="s50577" subtext="Gardeners&apos; Question Time" genre_id="g266" formats="wma" show_id="p889" item="station" image="" current_track="Gardeners&apos; Question Time" now_playing_id="s50577" preset_id="s50577"/>
<outline type="audio" text="BBC Radio 4 (London)" URL="" bitrate="48" reliability="96" guide_id="s25419" subtext="Gardeners&apos; Question Time" genre_id="g3124" formats="wma" show_id="p889" item="station" image="" current_track="Gardeners&apos; Question Time" now_playing_id="s25419" preset_id="s25419"/>
<outline type="audio" text="BBC Radio 1 (London)" URL="" bitrate="48" reliability="95" guide_id="s24939" subtext="Huw Stephens" genre_id="g61" formats="wma" show_id="p134949" item="station" image="" current_track="Huw Stephens" now_playing_id="s24939" preset_id="s24939"/>
<outline text="Explore BBC" key="related">
<outline type="link" text="BBC Local" URL="" guide_id="c467494"/>
<outline type="link" text="BBC Nations" URL="" guide_id="c467492"/>
<outline type="link" text="BBC World Service" URL="" guide_id="c467496"/>

Developers / Re: MPD integration
« on: January 12, 2014, 02:38:45 pm »
After a little playing, I wonder if I could ask a little advice on how to lay out the various bits.

So, my ideal world.

I'd like to have an MPD server for each user in the system and have the audio from that routed to whichever speakers they choose.

Control for MPD can be via the normal MPD interface/ clients for now without any issue, ideally this could then be embedded into the orbiters and web interface, but that isn't something I'd like to tackle quite yet. 

The audio handling/ routing is something I'm not sure about. 

I have a few sqeezeslaves running that work well for LMCE based radio, I'd like to push the audio from mopidy through those too.  Any suggestions on where I should start looking to implement that? 

Also, after thinking a little more, it kind of feels like there would only be a single device in charge of spinning up the mopidy servers, probably on the core.   Then the audio would be streamed from there.  Does that sound reasonable?
In that case, it may not be necessary for the mopidy servers to be DCE devices at all and renders the python/ DCE .. discussion.. somewhat moot.

Lastly, should I upgrade or develop this in a 12.04 env.

Developers / Re: MPD integration
« on: January 08, 2014, 11:55:13 am »
Have you made a device in C++ yet? I would do that, before making anything else, so you can understand the API that we have fully. Why are you avoiding this?



I have done some experiments with C++ devices yes.  I do understand, mostly, the API and how it maps to the device definition and message passing, I did a fair amount of research to understand it all while building the java dce library.

On why I did that, and why I'm proposing python now?  A few answers are possible.

I love to experiment and fiddle, re-implementing something is a nice way for me to understand how something works, so I enjoy the play time.

The potentially most contentious one is that C++ has a relatively higher barrier to entry as compared to java, python and ruby on a language level.  The ruby integration is fairly basic, single threaded and unsuitable for building full devices.

The java dce lib isn't really suitable for much as it turns out, as the java environment is just too decoupled from any kind of automation for it to be worth it.

Python has quite tight integration via its C/C++ modules, so it is feasible to use it to write some real devices.

After all that though, the real answer is that mopidy is written in python.  Any extensions to it will also be in python.  Adding a DCE interface to it would be one of, write a seperate DCE device to manage it, or write a DCE layer within it.  Having a dce device in it would mean interfacing C++ and python.

That's it. 'avoiding', no, interested in the challenge, yes.

Developers / Re: MPD integration
« on: January 07, 2014, 03:39:23 pm »
one question, should I do dev against 12.04 for this to get the benefit of any new work, or would it not matter?

I'm currently on 10.04 across the board.

Developers / Re: MPD integration
« on: January 07, 2014, 10:43:35 am »
Also, I think it'd be ideal to have mopidy as a logical audio source in its own right, so that it could then be streamed at the the squeeze etc devices and have them handle the audio distribution, rather than outputting audio directly itself. That strikes me as a more natural integration with the lmce audio network as it stands right now, rather than just adding something thats useful but not totally compatible.

If you have any thoughts on that direction, that would be nice to understand.  If it's feasible, possible, a good idea etc...

Via its plugins, it appears to give access to the majority of the music streaming services via a single API, so it'd be a nice win to be able to have LMCE have all of those integrated, and be able to take advantage of any others being added to mopidy in the future.

There is a bug in mopidy that prevents it working properly as a shoutcast stream server via gstreamer, the stream gets closed at the wrong time.  Using gstreamer to generate a plain audio source does seem to work fine though, and if the meta data is being distributed via DCE, thats good enough...   

Developers / Re: MPD integration
« on: January 07, 2014, 09:52:03 am »
Yeah, I'd like to get that java/ dce finished and running at some point.  I did get basic demo devices implemented and running, just needs some polishing and proper testing. TBH, actually finding a real problem that it would suit better than C++ is the real issue, which is why I never really went anywhere with it in the end.  Something web integrated would suit well I think.

It appears that mopidy has a nice modular system of its own, so I strongly suspect that it could be turned into a standalone bi-directional DCE device via a couple of python/ c module extensions that interface with libdce.

Gives me a reason to brush up my python, and also might be a useful contribution to be able to write DCE devices in python as well ..  I'll see how it goes, might not be feasible.

As a first cut, I'll make a simple dce device that accepts the media control commands, maybe issues events if I can track down the right ones.

Once I get there I expect to be lost for how to integrate into the system properly.  I'll ask more questions then.

Developers / MPD integration
« on: January 06, 2014, 11:14:43 am »

I've been after integrating spotify into linuxmce for ages, even trying to write a full dce/ spotify component (failed miserably).

I've come across an MPD implementation ->  that gives an MPD interface to spotify, soundcloud, icecast etc and also local files as per normal.

I've got it all set up on my 10.04 core (it was a royal PITA with its old version of python, but I got it running eventually), and it's now lovely, I can use any MPD client to control and query spotify streaming music, alongside local files.

I'm wondering if anyone has considered MPD at all for a more general integration?   Seems like it might be a good thing to delegate music handling too, especially something plugin based like mopidy that would allow leveraging all the work they've put in.

Maybe, a mopidy server per user for them to control that can then be streamed out tom the various EAs?   dunno.


Users / Re: Kickstarter Campaign to fund a programmer?
« on: September 20, 2013, 05:29:43 pm »
My time is tragically limited for anything other than boostrapping a business and looking after family, so I drift in and out at random.
I do, however, have some cash that I can throw in this direction if there is somewhere to throw it and there is some tangible benefit to me doing that.

I'd be happy to commit to $100 with no further information, as I think this is a project that deserves more dev time.  I'd be interested in putting a fair amount more in too if I could have an idea of what the benefits to the roadmap could be if this goes ahead (barring the changes that are always going to happen)

Users / Re: stream desktop audio to lmce
« on: January 23, 2013, 08:53:46 am »
I know!

Install paprefs and run it, there is then an option to "Make discoverable Apple Airtunes sound devices available locally"

That then shows up in the main pulse control tool as an option to direct audio streams to (per app!).  Pulse is really quite a nice bit of kit, streaming between pulse servers works well, this appears to work less well, but I don't know where the problem lies at all.

Users / Re: stream desktop audio to lmce
« on: January 22, 2013, 02:34:14 pm »
The way I've noted that _should_ work (I haven't made it fully work yet).

Pulseaudio allows you to stream data out via DNLA and Airplay, both of which the MDs support, to an extent.

I've had music from desktop spotify play via an airplay stream to an MD, although no, actual, sound came out, both ends recognised each other and connected to each other.
I haven't investigated further, but that might be a possibility.
The other one would be to integrate pulse audio into an MD as another audio server option alongside an airplay server, as pulse audio network playing is pretty solid in my experience.

Pages: [1] 2 3 ... 6