Jason,

The built-in Music app was not designed with that sort of integration in mind. We're so busy getting version 1.1 out the door that I don't think we've put much thought into the future of the app. I hope that for v1.2 we support playlists at least. Maybe internet radio as well. Once we get there, it might make sense to think about how to integrate third-party services.

Unless you are already in talks with our biz dev people, however, I would guess that there is little chance of us shipping a version of the Music app that supports your service for version 1.2. (This really is a guess, however: I know nothing about the business end of thing, and though I'm deeply involved with the media apps, I'm not the owner of the music app specifically.)

Have you considered writing a stand-alone app for your service? That seems like the most direct path forward. Keep mind however that in some of our initial launch markets (Brazil, for example) wifi is almost non-existent and carrier data plans are expensive. That is probably why we have an FM radio app on the phones but do not yet support internet radio in the Music app.

I am the author of mediadb.js, and can answer any questions you have about that. The purpose of that library is to integrate the DeviceStorage API and the IndexedDB API to handle filesystem scanning and metadata parsing and storage. If you're talking about streaming music, you'll probably only be interested in the IndexedDB part of mediadb. If media apps are going to work with a combination of local and online media, I'd probably have to evolve the mediadb API somehow to accomodate that.

    David Flanagan

On 5/1/13 8:03 PM, Jason Gullickson wrote:
Good evening!

I'm very excited to be working with FirefoxOS and looking to integrate our 
streaming music service with the built-in music app.

What I'm looking to do is write a service/module/etc. that can add media to the 
central library that will be streamed from our music service (as opposed to 
adding music files stored on the local filesystem).  This way music from our 
service can be played by the Music app alongside local music (or other sources 
as well) instead of having multiple player apps for each service.

I've been reading over the mediadb.js source and it would seem like it would be 
possible to add music to the library from non-filesystem sources, but it's less 
clear that these files could be referenced by URL to be played back via network 
stream instead of local filesystem.

How I imagine this is a UI that appears in settings or something like that 
where the account information can be supplied, and then a background process 
that adds/removes media references from the media library on a scheduled or 
perhaps push-triggered basis.

Another approach might be to implement access to the music service like a FUSE 
module and make the media appear in the filesystem, but I'd be concerned with 
the performance this might have.

Any feedback appreciated, and if there's documentation out there for these 
features I'd be happy to start there if you can point me in the right 
direction, thanks!


Jason
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to