nazar-pc / CleverStyle-Music

CleverStyle Music Open Web App. Music player for Firefox OS built using open web technologies.
https://marketplace.firefox.com/app/cleverstyle-music/
MIT License
18 stars 3 forks source link

Can't find music on Firefox Flame device. #1

Closed nmunro closed 10 years ago

nmunro commented 10 years ago

I have tested this app on both the Flame and the firefox OS simulator and it works in the simulator, but not on the physical hardware, both use the 1.3 release.

The effect is that the app just keeps searching for but never finds any tracks. I initially suspected that this may be ogg support, I feel I may have been wrong in my assumption.

I've not been able to test the application via debug cable yet, so I will add to this when I have had the chance to do so.

This is the process I went through, they say a picture is worth 1,000 words so here's a sequence of events I saw when trying to load in music.

2014-07-23-11-07-46 2014-07-23-11-07-51 2014-07-23-11-07-56 2014-07-23-11-07-59 2014-07-23-11-08-08

It just does not move past the final screen and doesn't find any tracks. There's quite a few albums on the SD card.

nazar-pc commented 10 years ago

You can see the list of "known" extensions here: https://github.com/nazar-pc/CleverStyle-Music/blob/master/js/ac.music_library.coffee#L209

Ogg extension is listed and at least should be visible for an app. I do own have any real device, and test app only in simulator (mostly in 1.4 beta version), so, if you can give me some details whats going wrong in debug mode - I'll be very thankful and do my best to fix it.

nmunro commented 10 years ago

Ok, so it's not my original idea (I'm so used to not having ogg support), can you show me where in your code it attempts to discover the music directory? I might have an idea from there.

Thanks.

nazar-pc commented 10 years ago

https://github.com/nazar-pc/CleverStyle-Music/blob/master/js/ac.music_library.coffee#L247 music_storage variable is declared at the head of the file. Code is simple, it should work. Maybe, there is something interesting about this in console (besides usual warnings about html imports)?

nazar-pc commented 10 years ago

@nmunro, do you have any updates for this issue?

nmunro commented 10 years ago

I have not yet been able to figure out the issue, it's not helped by the fact that I don't know coffeescript.

I could do with a lot of help trying to figure this one out.

Neil On 29 Jul 2014 00:28, "Nazar Mokrynskyi" notifications@github.com wrote:

@nmunro https://github.com/nmunro, do you have any updates for this issue?

— Reply to this email directly or view it on GitHub https://github.com/nazar-pc/CleverStyle-Music/issues/1#issuecomment-50416366 .

nazar-pc commented 10 years ago

There is generated JavaScript file as well, but, obviously, it is not well formatted.

nmunro commented 10 years ago

Yes, it's not great to have to figure out. I've not yet figured out how to get hardware debugging working so I'm no further forward there. I can try some tonight again but I'm not sure how to proceed with this if I can't get that working.

It should just work, it doesn't. There's a problem.

Neil On 29 Jul 2014 12:07, "Nazar Mokrynskyi" notifications@github.com wrote:

There is generated JavaScript file as well, but, obviously, it is not well formatted.

— Reply to this email directly or view it on GitHub https://github.com/nazar-pc/CleverStyle-Music/issues/1#issuecomment-50462733 .

nmunro commented 10 years ago

I'd be tempted to think that perhaps that there's a location on the SD that the app doesn't search inside.

I've not had an opportunity to debug this app cos I'm swamped with a bunch of work, so I've given up trying to find the issue, I'd still like to use it, but I now no longer have the time to attempt to figure it out.

nazar-pc commented 10 years ago

Sadly to hear that. I'll leave this issue open for a while, maybe you'll have some free time or I'll get such device where I can reproduce this issue.

nmunro commented 10 years ago

With respect, I wasn't able to begin to figure out your code in the time that I had. I'm now booked up on projects til long past Christmas. I suggest that if you are going to be writing applications for Firefox OS you get a real device, maybe more than one, because you will miss out on the bugs that occur on real hardware.

I don't have this installed anymore because, unfortunately, from my perspective, it just "didn't work". I know that's not helpful, but others might just give it a bad review with nothing else.

I hope you do figure it out, I know that I can't, otherwise I'll just use the standard music player app which does happily find all my music.

Neil

nazar-pc commented 10 years ago

@nmunro, after #6 I have a question to you: where is your music located on Flame phone? This can be the same issue. If so - I'll add a note into description of an application on Marketplace.

nmunro commented 10 years ago

According to my flame the music is located here:

/external/Music

nazar-pc commented 10 years ago

Is it system music directory?

nazar-pc commented 10 years ago

Finally, I've got Alcatel OneTouch Fire E from T-Mobile Poland. I had the same issue as you, but somehow I got it working. My default media storage it set to "Internal", also I've created Music directory, and (possibly after reboot) app found music and works just fine. Please, try this to confirm solution and I'll add it to app description in order to help others until I change music scanning mechanism.

nazar-pc commented 10 years ago

Another user placed Music folder on sd card, and app didn't found any music untill he set Settings>Media storage>Default media location to external sd card. @nmunro, check this please for confirmation.