MediaStreamerFactory.CreateMediaStreamer Method

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

Obtains an instance of the MediaStreamer class with the specified ID.

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

Syntax

Public Shared Function CreateMediaStreamer ( _
    id As Integer _
) As MediaStreamer
public static MediaStreamer CreateMediaStreamer(
    int id
)

Parameters

Return Value

Type: Microsoft.Phone.Media..::.MediaStreamer
The MediaStreamer instance.

Exceptions

Exception Condition
InvalidOperationException

Only one MediaStreamer can be active at a time.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

MediaStreamerFactory Class

Microsoft.Phone.Media Namespace