Düzenle

Aracılığıyla paylaş


Change Media Streaming Settings

Applies To: Windows Server 2016 Essentials, Windows Server 2012 R2 Essentials, Windows Server 2012 Essentials

Multiple options are available for you to change media streaming settings. The following options are available:

Hide remote media streaming add-in

You can hide the remote media streaming add-in by adding an entry in the registry.

To hide the remote media streaming add-in

  1. On the server, move your mouse to the upper right corner of the screen, and click Search.

  2. In the Search box, type regedit, and then click the Regedit application.

  3. In the left pane, expand down to the following registry entry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Server\RemoteAccess\DisabledAddIns

  4. Right-click DisabledAddIns, point to New, and then click DWORD Value.

  5. For the new value, type 497796c6-9cc7-43be-aa26-4e6b5695370d, which is the identifier for the remote media streaming add-in, and then press Enter.

  6. Right click the value, and then click Modify.

  7. Type 1 for the value data, and then click OK.

Set the media library name

You can use a class in the Windows Server Solutions SDK to set the name of the media library. To set the name of the media library, you can use the SetMediaLibraryName method of the MediaStreamingManager class in the Microsoft.WindowsServerSolutions.MediaStreaming namespace. The following example shows how to set the name of the media library:


MediaStreamingManager mediaStreamingManager = new MediaStreamingManager();
string mediaLibraryName = Guid.NewGuid().ToString("B");
mediaStreamingManager.SetMediaLibraryName(mediaLibraryName);

For more information, see Windows Server Solutions SDK.

Set video streaming quality

You set the video streaming quality by obtaining the WinSAT CPU score and then creating and installing the .xml file that contains the WinSAT score information. If the .xml file that contains the WinSAT score information is installed before Initial Configuration runs, the user interface for setting video quality will not appear to the customer. For more information, see Set the WinSAT Score on the Server.

Programmatically enable or disable media streaming

You can use a class in the Windows Server Solutions SDK to programmatically enable or disable media streaming. To enable or disable media streaming, you can use the SetMediaStreamingEnabled method of the MediaStreamingManager class in the Microsoft.WindowsServerSolutions.MediaStreaming namespace. The following code example shows how to enable media streaming:


MediaStreamingManager mediaStreamingManager = new MediaStreamingManager();
mediaStreamingManager.SetMediaStreamingEnabled(true);

The following code example shows how to disable media streaming:


MediaStreamingManager mediaStreamingManager = new MediaStreamingManager();
mediaStreamingManager.SetMediaStreamingEnabled(false);

See Also

Creating and Customizing the Image Additional Customizations Preparing the Image for Deployment Testing the Customer Experience