AudioStreamer.SetSource Method

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

Sets a MediaStreamSource derived object that provides buffering and playback functionality for this audio stream.

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

Syntax

Public Sub SetSource ( _
    source As MediaStreamSource _
)
public void SetSource(
    MediaStreamSource source
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

SetSource(MediaStreamSource) has been called more than once.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

AudioStreamer Class

Microsoft.Phone.BackgroundAudio Namespace