Presentation is loading. Please wait.

Presentation is loading. Please wait.

Touchdevelop api api: songs play music Disclaimer: This document is provided as-is. Information and views expressed in this document, including URL and.

Similar presentations


Presentation on theme: "Touchdevelop api api: songs play music Disclaimer: This document is provided as-is. Information and views expressed in this document, including URL and."— Presentation transcript:

1 touchdevelop api api: songs play music Disclaimer: This document is provided as-is. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

2 touchdevelop api songs o Windows Phone built-in notion of songs o sync songs with Zune o buy new songs from Marketplace

3 touchdevelop api apis o Mediasongs Gets the songs on the phone Mediasongs o Mediasong albums Gets the song albums on the phone Mediasong albums o Playeractive song Gets the active song if any Playeractive song o Playlistsongs Gets the songs Playlistsongs o Media Serversongs Gets a list of all songs Media Serversongs o Media Serversearch songs Searches for songs Media Serversearch songs o Webdownload song Create a streamed song file from internet Webdownload song

4 touchdevelop api apis o Songsrandom Gets the item at a random position; invalid if empty Songsrandom o Songscount Gets the number of elements in the collection Songscount o Songsat Gets the item at position 'index'; invalid if out of bounds Songsat o Songsplay Plays the song. Songsplay o Songspost to wall Displays the songs on the wall Songspost to wall

5 touchdevelop api apis o Song Albumname Gets the name of the album Song Albumname o Song Albumsongs Gets the songs Song Albumsongs o Song Albumartist Gets the name of the artist Song Albumartist o Song Albumhas art Indicates if the album has art Song Albumhas art o Song Albumart Gets album art picture Song Albumart o Song Albumthumbnail Gets the thumbnail picture Song Albumthumbnail o Song Albumduration Gets the duration in seconds Song Albumduration o Song Albumgenre Gets the genre of the song Song Albumgenre o Song Albumplay Plays the songs of the album Song Albumplay o Song Albumpost to wall Displays the song album on the wall Song Albumpost to wall

6 touchdevelop api apis o Songname Gets the name of the song Songname o Songartist Gets the name of the artist Songartist o Songalbum Gets the song album containing the song Songalbum o Songduration Gets the duration in seconds Songduration o Songtrack Gets the track number in the album Songtrack o Songgenre Gets the genre of the song Songgenre o Songplay Plays the song. Songplay o Songplay count Gets the play count Songplay count o Songpost to wall Displays the song on the wall Songpost to wall o Songprotected Gets a value whether the song is DRM protected Songprotected o Songrating Gets the users rating. -1 if not rated. Songrating

7 touchdevelop api examples o forgotten songs o song controller

8 touchdevelop api exercises create your own song controller: use board to show current song (name, album art, …) provide buttons and implement tap events to choose another song, pause, resume

9 touchdevelop api homework finish your song player at home


Download ppt "Touchdevelop api api: songs play music Disclaimer: This document is provided as-is. Information and views expressed in this document, including URL and."

Similar presentations


Ads by Google