1 / 18

Nokia Music Windows Phone 8 app-to-app APIs

Nokia Music Windows Phone 8 app-to-app APIs. Steve Robbins & Matt Cooper Chief Architect, Windows Phone Architect Nokia Music 2-031. Agenda. What is Nokia Music? App-to-app APIs: How and why you should use them Using the Nokia Music REST API to add music data to your app. Nokia Music.

carissa
Download Presentation

Nokia Music Windows Phone 8 app-to-app APIs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Nokia Music Windows Phone 8 app-to-app APIs Steve Robbins & Matt Cooper Chief Architect, Windows Phone Architect Nokia Music 2-031

  2. Agenda • What is Nokia Music? • App-to-app APIs: How and why you should use them • Using the Nokia Music REST API to add music data to your app

  3. Nokia Music • Instant free music streamingon Lumia Windows Phones100s of curated mixesCreate your own artist mixesOffline cachingGraphic EqualizerNo login, no adsGig Finder for live concerts Launched in the US in September!

  4. Nokia Music 3.5 for Windows Phone 8 includes App-to-App • In Windows Phone Store today! • Nokia Music app-to-app protocol

  5. App-to-App protocols • App-to-App protocols allow one app to launch another with a specific URI scheme. • For more info, see Sean McKenna’s talk. • Launcher.LaunchUriAsync("nokia-music://show/artist/?name=Rihanna")

  6. Nokia Music app-to-app protocols

  7. App-to-app in action • Demo • Create App that Launches Nokia Music • Extend App to search for artists • Benefits of App-to-App

  8. Lumia and NFC • Get an NFC tag to experiment from the Nokia stand! • ProximityDevice device = ProximityDevice.GetDefault(); • if(device != null) { • device.PublishBinaryMessage("WindowsUri:WriteTag", • GetBufferFromUrl("nokia-music://play/mix/?id=35541874"), • UnregisterUponSend); • MessageBox.Show("Tap NFC tag to write link"); • } • See http://nokia.ly/nfcslides

  9. Creating app-to-app protocol • Demo • Create an app-to-app custom protocol handlerRegister for a URI • Listen for and handle URI with a URIMapperCall URI from another app

  10. Using App-to-App to make Launcher Tasks • newShowArtistTask() { • ArtistName= "Green Day" • }.Show();

  11. Web fall-back • void Launch(UriappToAppUri, UriwebFallbackUri) • { • #ifWINDOWSPHONE8 • if (IsNokiaDevice()) • { • Launcher.LaunchUriAsync(appToAppUri); • return; • } • #endif • WebBrowserTask web = newWebBrowserTask(); • web.Uri = webFallbackUri; • web.Show(); • }

  12. Nokia Music Launcher Tasks

  13. Nokia Music Launcher Tasks • Demo • Install API with NuGet • Replace URI-based App-to-App with MusicSearchTask • Take an existing Location-based app and add “Gigs Near You” feature

  14. Nokia Music Windows Phone API • Makes it easy for you to integrate music data into your app. • MusicClientAsyncclient = newMusicClientAsync(AppId, AppCode); • var artists = awaitclient.GetTopArtists(); • list.ItemsSource = artists.Result; • // much later... • artist.PlayMix();

  15. Nokia Music Windows Phone API

  16. Using the Nokia Music Windows Phone API • Demo • Sign up for API Keys • Create application to show Top Artists by Genre

  17. Summary • What is Nokia Music? • App-to-app APIs: How and why you should use them • Using the Nokia Music REST API to add music data to your app

  18. Questions? • Source and examples: • http://nokia.ly/wpmusicapi • Contact Info: • @sr_gb • steve.robbins@nokia.com

More Related