api songs - TouchDevelop

January 13, 2018 | Author: Anonymous | Category: Arts & Humanities, Performing Arts, Drama
Share Embed Donate


Short Description

Download api songs - TouchDevelop...

Description

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.

touchdevelop api

songs o

Windows Phone built-in notion of “songs”

o

sync songs with Zune

o

buy new songs from Marketplace

touchdevelop api

apis o

o

o

o

Media→songs Gets the songs on the phone Media→song albums Gets the song albums on the phone Player→active song Gets the active song if any Playlist→songs Gets the songs

o

o

o

Media Server→songs Gets a list of all songs Media Server→search songs Searches for songs Web→download song Create a streamed song file from internet

touchdevelop api

apis o

Songs→random Gets the item at a random position; invalid if empty

o

Songs→count Gets the number of elements in the collection

o

Songs→at Gets the item at position 'index'; invalid if out of bounds

o

Songs→play Plays the song.

o

Songs→post to wall Displays the songs on the wall touchdevelop api

apis o

o

o

o

o

Song Album→name Gets the name of the album Song Album→songs Gets the songs Song Album→artist Gets the name of the artist Song Album→has art Indicates if the album has art Song Album→art Gets album art picture

o o

o o

o

Song Album→thumbnail Gets the thumbnail picture Song Album→duration Gets the duration in seconds Song Album→genre Gets the genre of the song Song Album→play Plays the songs of the album Song Album→post to wall Displays the song album on the wall touchdevelop api

apis o

o

o

o

o

o

Song→name Gets the name of the song Song→artist Gets the name of the artist Song→album Gets the song album containing the song Song→duration Gets the duration in seconds Song→track Gets the track number in the album Song→genre Gets the genre of the song

o o o

o

o

Song→play Plays the song. Song→play count Gets the play count Song→post to wall Displays the song on the wall Song→protected Gets a value whether the song is DRM protected Song→rating Gets the users rating. -1 if not rated. touchdevelop api

examples o

forgotten songs ☁ http://touchdevelop.com/fpkj

o

song controller ☁ http://touchdevelop.com/apgq

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

touchdevelop api

homework ►finish your song player at home

touchdevelop api

View more...

Comments

Copyright � 2017 NANOPDF Inc.
SUPPORT NANOPDF