Skip to Content
Windows® Phone 8 Unleashed
book

Windows® Phone 8 Unleashed

by Daniel Vaughan
May 2013
Intermediate to advanced content levelIntermediate to advanced
1152 pages
82h 34m
English
Sams
Content preview from Windows® Phone 8 Unleashed

Controlling Background Audio from Your Foreground App

Most apps employing background audio are going to want to provide an enhanced interface within the foreground app for controlling playback and displaying track information. This section looks at the MainPage and associated classes of the WPUnleashed.BackgroundAudio project. The page allows the user to play audio via the BackgroundAudioPlayer class. It provides application bar buttons for play and pause, stop, rewind, and forward, and several fields for displaying the current track information.

Note

It is a Windows Phone Marketplace certification requirement that when the user is already playing background music on the phone when your app is launched, your app must ask the user for consent ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Exam Ref 70-484: Essentials of Developing Windows Store Apps Using C#

Exam Ref 70-484: Essentials of Developing Windows Store Apps Using C#

Indrajit Chakrabarty
Windows Phone 8 Development Internals

Windows Phone 8 Development Internals

Andrew Whitechapel and Sean McKenna

Publisher Resources

ISBN: 9780133383959Purchase book