AudioTrack Constructor (Uri, String, String, String, Uri, String, EnabledPlayerControls)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates and initializes a new instance of the AudioTrack class.
Namespace: Microsoft.Phone.BackgroundAudio
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Sub New ( _
source As Uri, _
title As String, _
artist As String, _
album As String, _
albumArt As Uri, _
tag As String, _
enabledControls As EnabledPlayerControls _
)
public AudioTrack(
Uri source,
string title,
string artist,
string album,
Uri albumArt,
string tag,
EnabledPlayerControls enabledControls
)
Parameters
- source
Type: System..::.Uri
The URI path to the track. This can be a UriKind value or null if using streaming.
- title
Type: System..::.String
The title of the track. This must be a non-empty string.
- artist
Type: System..::.String
The artist of the track. This string can be empty or null.
- album
Type: System..::.String
The album of the track. This string can be empty or null.
- albumArt
Type: System..::.Uri
The URI path to the image used in the user interface—for example, in the Now Playing Tile. This can be null.
- tag
Type: System..::.String
Application-specific context for the track.
- enabledControls
Type: Microsoft.Phone.BackgroundAudio..::.EnabledPlayerControls
Specifies which controls should be enabled in the system user interface.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone