On Wednesday, 1 May 2013 22:40:06 UTC-5, David Flanagan  wrote:
> 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

Thanks for the info and background David!

I have been working on a stand-alone app as well, which is what lead me to 
poking around in the built-in Music app's source and picking-up on mediadb.js.  
I don't have any relationship with Mozilla in any business sense, just another 
developer excited about the platform, and I happen to work for a company who is 
excited about it as well :)

I do encourage you (and/or whoever makes these sorts of architectural 
decisions) to consider expanding the mediadb (perhaps there's a better name 
that I should be using, but the shared store of media items & metadata is what 
I'm referring to) to index remote media by URL as well as media stored on the 
filesystem.  I think that by supporting and/or allowing this type of 
integration you can eliminate a lot of redundancy found on other platforms (how 
many apps play music or video and more or less duplicate the controls of the 
built-in players?).  This also opens up interesting new applications because 
media can be combined in new and interesting ways instead of being locked-up in 
silos of individual apps.

I understand that this sort of thing is pretty low on the priority list, but if 
the idea is interesting I'd love to help however I can.  In the meantime I'll 
work on building a nice stand-alone player and learning my way around the 
system as well.

Thanks!


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

Reply via email to