Microsoft KB Archive/836994

= How to delay a live stream in Windows Media Services 9 Series =

Article ID: 836994

Article Last Modified on 3/8/2007

-

APPLIES TO


 * Microsoft Windows Media Services 9 Series

-



INTRODUCTION
This article discusses certain namespace changes that you can make to the Microsoft Windows Media Services 9 Series to delay a live stream.

Note Do not make these changes on production servers until you determine the effects on the overall server performance and on the experience of the end user. Changes to these settings might hinder the end-user experience under some circumstances. Changes to these settings may also cause server resources to be exhausted. There are very few circumstances when a server administrator would want to change these settings on a production server.



MORE INFORMATION
Warning This article contains information about editing the namespace. Before you edit the namespace, verify that you have a backup copy that you can restore if a problem occurs. If you edit the namespace incorrectly, you can cause serious problems that may require you to reinstall any product that uses the namespace. Microsoft cannot guarantee that problems that result if you incorrectly edit the namespace can be solved. Edit the namespace at your own risk.

Note Changes to these settings apply to all broadcast publishing points on the server.

To enable the delay, follow these steps:  Stop Windows Media Services: Run the net stop wmserver command from the command prompt. Change to the directory where the namespace file is located (<%SystemRoot%>\system32\Windows media\Server). Use a text editor such as Notepad to open the ServerNamespace.xml file. Set the following four namespace parameters, as detailed in steps 5 through 7:  BufferingTime Max Data Buffered MaxDataToBufferInMs</li> MaxDataToBufferInBytes</li></ul> </li> Set the BufferingTime namespace parameter: <ol style="list-style-type: lower-alpha;"> Locate and expand the Network Source node.</li> Locate and expand the Shared Properties sub-node.</li>  Add the BufferingTime value below the Shared Properties sub-node.

BufferingTime. An integer value that represents time, in milliseconds, to delay the stream (for example, 0x493e0 = 300000ms = 5 min). <node name=&quot;BufferingTime&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x493e0&quot; /> Important Although a Buffering Time property (note the space) may exist, do not modify this value. </li></ol> </li> Set the Max Data Buffered namespace parameter: <ol style="list-style-type: lower-alpha;"> Locate and expand the Network Source node.</li> Locate and expand the Object Store sub-node.</li> Locate and expand the Windows Media HTTP Source Plugin sub-node.</li> Locate and expand the Properties sub-node.</li>  Add the Max Data Buffered value below the Properties sub-node.

Max data Buffered. An integer value that represents the size, in bytes, of data to buffer. Calculated this value from the time of delay in the stream (in seconds), multiplied by the bit rate of the content. (for example, 300sec x 100000bps / 8 = 3750000 bytes = 0x393870). <node name=&quot;Max data Buffered&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x393870&quot; /> </li></ol> </li> Set the MaxDataToBufferInMs namespace parameter and the MaxDataToBufferInBytes namespace parameter: <ol style="list-style-type: lower-alpha;"> Locate and expand the Data Source node.</li> Locate and expand the Object Store sub-node.</li> Locate and expand the WMS Network Data Source sub-node.</li> Locate and expand the Properties sub-node.</li> <li>Add the MaxDataToBufferInMs value and the MaxDataToBufferInBytes value below the Properties sub-node. <ul> <li> MaxDataToBufferInMs. An integer value, in milliseconds, that is expected to be larger than the BufferingTime value that you selected earlier. <node name=&quot;MaxDataToBufferInMs&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x927c0&quot; /> </li> <li> MaxDataToBufferInBytes. An integer value, in bytes, that is expected to be larger than the Max data Buffered value that you selected earlier. <node name=&quot;MaxDataToBufferInBytes&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x7270E0&quot; /> </li></ul> </li></ol> </li> <li>Save the file and then close the file.</li> <li>Restart Windows Media Services: Run the net start wmserver command from the command prompt.</li></ol>

The following sample code is another representation of the code that you can add to the ServerNamespace.xml file: <pre class="fixed_text"> <node name=&quot;Network Source&quot; opcode=&quot;create&quot;> ...    <node name=&quot;Object Store&quot; opcode=&quot;create&quot;> ...         <node name=&quot;WMS Network Data Source&quot; opcode=&quot;create&quot;> ...              <node name=&quot;Properties&quot; opcode=&quot;create&quot;> ...                   <node name=&quot;MaxDataToBufferInMs&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x927c0&quot; /> <node name=&quot;MaxDataToBufferInBytes&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x7270E0&quot; /> ...         ...          <node name=&quot;Windows Media HTTP Source Plugin&quot; opcode=&quot;create&quot;> ...              <node name=&quot;Properties&quot; opcode=&quot;create&quot;> ...                   <node name=&quot;Max data Buffered&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x393870&quot; /> ...         ...     ...     <node name=&quot;Shared Properties&quot; opcode=&quot;create&quot;> ...         <node name=&quot;BufferingTime&quot; opcode=&quot;create&quot; type=&quot;int32&quot; value=&quot;0x493e0&quot; /> ... After you enable this setting, and when you start the publishing point, some clients may receive an error message. Specifically, clients that connect before the buffer has filled will receive an error message.

Additional query words: Namespace WMS9 delay stream

Keywords: kbinfo KB836994

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.