Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BackgroundAudioPlayer.Play Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Plays or resumes the current AudioTrack at its current position.

Namespace:  Microsoft.Phone.BackgroundAudio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public void Play()

ExceptionCondition
InvalidOperationException

Play() was called, but there is no current Track set.

Volume settings may not be retained in background audio player applications. This can occur if you set the Volume property first and then call the Play() method and then set the Track property. To resolve this issue, always set the track before calling the Play method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show: