-
Playing Mixes
I was trying out Nokia Music API. I wanted to play a mix like this:
[CODE]
MusicClientAsync client = new MusicClientAsync("MyAppId", "MyAppCode");
ListResponse<MixGroup> mixGroups = await client.GetMixGroups();
ListResponse<Mix> mixes = await client.GetMixes(mixGroups.Result[0]);
mixes.Result[0].Play();
[/CODE]
But it only opens music.ovi.com website. I'm working on emulator. Description for Play() method says:
[QUOTE]Launches Nokia Music to start playback of the mix using the[/QUOTE]
Yes, it is cut in the middle like that.
According to Play() description I can't play music in my app. Play() should open other app(Nokia Music) which will play it, correct? So I can't test in on emulator since there's no Nokia Music on it? Or maybe there is a way to play songs in my app which to be honest I was expecting.
-
Re: Playing Mixes
[QUOTE=sayy;906152]I was trying out Nokia Music API. I wanted to play a mix like this:
[CODE]
MusicClientAsync client = new MusicClientAsync("MyAppId", "MyAppCode");
ListResponse<MixGroup> mixGroups = await client.GetMixGroups();
ListResponse<Mix> mixes = await client.GetMixes(mixGroups.Result[0]);
mixes.Result[0].Play();
[/CODE]
[/QUOTE]
Thanks for trying out the API!
[QUOTE=sayy;906152]
But it only opens music.ovi.com website. I'm working on emulator. Description for Play() method says:
Yes, it is cut in the middle like that.
[/QUOTE]
Thanks for letting me know about the XML documentation problem - somehow the class reference element didn't work. I'll push fixes to [URL="http://nokia.ly/wpmusicapi"]GitHub[/URL] and [URL="https://nuget.org/packages/NokiaMusic"]NuGet[/URL] tomorrow.
To get the proper experience of playback, you need the Nokia Music app and this of course isn't on the emulator. On the emulator and non-Nokia phones, we offer a web fallback which makes sense for the artist and product details, but not so much on the mix playback. It's something we're aware of and we are working on improving that soon.
[QUOTE=sayy;906152]According to Play() description I can't play music in my app. Play() should open other app(Nokia Music) which will play it, correct? So I can't test in on emulator since there's no Nokia Music on it?[/QUOTE]
Both correct, yes.
[QUOTE=sayy;906152]Or maybe there is a way to play songs in my app which to be honest I was expecting.[/QUOTE]
Playback within your app is not something we offer at this time. I'm sorry you've not had a great experience with the API because of this; it really requires a Windows Phone 8 Lumia which has the Nokia Music app to work as you'd expect, i.e. your user initiates playback, Nokia Music appears and starts playing, the user can then go back to your app and continue.
Regards,
Steve