BackgroundAudioPlayer.Instance Property

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

Returns an instance of the BackgroundAudioPlayer. If this application already has background audio playback resources allocated, the BackgroundAudioPlayer returned will contain references to those resources.

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

Syntax

Public Shared ReadOnly Property Instance As BackgroundAudioPlayer
public static BackgroundAudioPlayer Instance { get; }

Property Value

Type: Microsoft.Phone.BackgroundAudio..::.BackgroundAudioPlayer
Returns BackgroundAudioPlayer.

Remarks

Only one BackgroundAudioPlayer can be active per application.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

BackgroundAudioPlayer Class

Microsoft.Phone.BackgroundAudio Namespace