How to debug Music Apps?

Hello,

Taken example code from https://github.com/garmin/connectiq-apps and adapted a bit for my service, using xml, json, and mp3. No auth required, https presents everywhere. Some issues corrected, so no warnings with SDK 3.1.7 present.

After simulator launch I see "No media" and Settings - Media mode - is Playback.

Ok, go to Sync Configuration and select songs provided.

Select Done and get blue triangle.

Ok, launch again and still blue triangle. I assume it should not happen.

Have to close simulator and open it again, launch, media mode was Playback with No media message.

And then I am not sure how to debug it.

I select Sync.

And get 0% after launch Sync. Wait for 10 minutes, and got sync, and it was not finished with a blue triangle, Woila!

Switched the mode to Play and at least it works in simulator (no sound however in headphones on PC, please add).

Any glue, any updated sources, any advices? How the major music providers develop their apps?

  • I just reread the documentation and I don't see how to start the manager music, 

    On a music you arrive at the menu to move forward backward ... and manage music but do it live I don't know.

  • When to assign Music Controls function in System -> Hot Keys, to a button, then pressing that assigned button - call leads to Audio Content Provider App, but not to Media Player, where "three dots" menu is (long press Menu/Up), what leads to Manage Mufic, I guess.

    Anyway, that's just UXUI issue, if no quick access to connect headphones or change a provider.

    Again, thank you for the answers, advices and comments. Seems I'll be back with questions again, along programming ))

  • I know it's been a while, so you may not remember. If the error you got was 1001, then according to the API docs, this is a "SECURE_CONNECTION_REQUIRED" error. I fixed this in the simulator by disabling Settings > Use Device HTTPS Requirements

  • Your url must be HTTPS and not HTTP.  The setting in sim only tells the sim to let you test HTTP.

  • Sure, but if you're running your test server on localhost (such as with the sample Audio Content Provider app, MonkeyMusic) then you may well need this setting. I figured I'd call it out for those cases. 

  • Taken example code from . and adapted a bit for my service, using xml, json, and mp3. No auth required, https presents everywhere.

    Some issues corrected, so no warnings with SDK 3.1.7 present.

    After simulator launch I see "No media" and Settings - Media mode - is Playback.

    Ok, go to Sync Configuration and select songs provided.

    Ok, launch again and still blue triangle. I assume it should not happen.

    Have to close simulator and open it again, launch, media mode was Playback with No media message.

    And then I am not sure how to debug it.

    I select Sync.

    And get 0% after launch Sync. Wait for 10 minutes, and got sync, and it was not finished with a blue triangle.

    -----------------------------------------------

     https://www.hiloindustrial.com/

  • Are you still using the 3.1.7?  First thing to do is to update to the current one (4.0.7) as there have been a lot of fixes, etc, in the last couple years.  And those things are also in the latest firmware.

  • Looks like that message is just the original post copy-pasted. Could be spam.