Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables or disables media streaming on the server.
Namespace: Microsoft.WindowsServerSolutions.MediaStreaming
Assembly: MediaStreamingObjectModel (in MediaStreamingObjectModel.dll)
Syntax
public void SetMediaStreamingEnabled(
bool enable
)
public:
void SetMediaStreamingEnabled(
bool enable
)
Public Sub SetMediaStreamingEnabled (
enable As Boolean
)
Parameters
enable
Type: System.Booleantrue to enable media streaming; otherwise false.
Exceptions
Exception | Condition |
---|---|
SecurityAccessDeniedException | The caller is not a local administrator. |
ProviderNotAvailableException | The media streaming provider cannot be contacted. |
Remarks
The specified state of media streaming is independent of whether a particular shared folder is configured to be included in or excluded from the Media Library.
Examples
The following code example shows how to enable media streaming:
MediaStreamingManager mediaStreamingManager = new MediaStreamingManager();
mediaStreamingManager.SetMediaStreamingEnabled(true);
See Also
MediaStreamingManager Class
Microsoft.WindowsServerSolutions.MediaStreaming Namespace
Return to top