Change Media Streaming Settings
Published: July 9, 2012
Updated: October 4, 2012
Applies To: Windows Server 2012 Essentials, Windows Storage Server 2012 R2 Essentials
Multiple options are available for you to change media streaming settings. The following options are available:
Hide remote media streaming add-in
Set the media library name
Set video streaming quality
Programmatically enable or disable media streaming
You can hide the remote media streaming add-in by adding an entry in the registry.
On the server, move your mouse to the upper right corner of the screen, and click Search.
In the Search box, type regedit, and then click the Regedit application.
In the left pane, expand down to the following registry entry:
Right-click DisabledAddIns, point to New, and then click DWORD Value.
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.
Right click the value, and then click Modify.
Type 1 for the value data, and then click OK.
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.
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.
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: