<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">A ticket without solution and workaround</title><subtitle type="html">not actually an official blog</subtitle><id>http://blogs.msdn.com/atckt/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/atckt/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2008-03-12T07:39:00Z</updated><entry><title>Two issues about core audio and media foundation</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/10/30/two-issues-about-core-audio-and-media-foundation.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/10/30/two-issues-about-core-audio-and-media-foundation.aspx</id><published>2008-10-30T19:16:00Z</published><updated>2008-10-30T19:16:00Z</updated><content type="html">&lt;FONT color=#1f497d size=3&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: Arial; mso-themecolor: text2; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;1. If your application is based on Vista core audio&amp;nbsp;and replies on&amp;nbsp;&lt;A href="http://msdn.microsoft.com/en-us/library/aa363230(VS.85).aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/aa363230(VS.85).aspx"&gt;&lt;SPAN style="COLOR: #1f497d; mso-themecolor: text2"&gt;DEVICE_STATE_DISABLED&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;flag, you may encounter issue. There is no core audio API/flag can be used to replace. An ugly and unsupported workaround is to check/monitor some registry keys. This workaround may be broken after core audio is updated.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: Arial; mso-themecolor: text2; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;2. When index of ASF source is not&amp;nbsp;available, Meida Foundation uses approximate seek automatically. It may cause long time delay. One obvious symptom is if you&amp;nbsp;move the progress bar of Windows Media Player11(Vista version) to a random back position when playing back wma file, you&amp;nbsp;may find the actual position is not the position you tried to set. It's a limitation. Currently, there is no way to get around it in MF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: Arial; mso-themecolor: text2; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;They will be fixed and improved. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9024779" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Playback" scheme="http://blogs.msdn.com/atckt/archive/tags/Playback/default.aspx" /></entry><entry><title>Socket 10055 error</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/09/30/socket-10055-error.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/09/30/socket-10055-error.aspx</id><published>2008-09-30T17:48:00Z</published><updated>2008-09-30T17:48:00Z</updated><content type="html">&lt;p&gt;10055 error is a very "common" socket error if you write socket application. On NT platform, generally speaking, the reason why this error occurs is because non-paged pool memory is almost used up. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Before you use performance monitor to check non-paged pool memory usage, there are several simple things that you might want to check first:&lt;/p&gt;&lt;p&gt;&amp;nbsp;1. The default maximum number of ephemeral TCP ports. The default value is 5000, if you find your socket application needs more than 5000 ports, please increase the value. Here is a &lt;a href="http://support.microsoft.com/kb/q196271" target="_blank" mce_href="http://support.microsoft.com/kb/q196271"&gt;KB article&lt;/a&gt; which shows how/where to change it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;2. If your application is based on .NET 1.1, please make sure you've installed .NET 1.1 SP1. There is a known issue which was fixed in 1.1 SP1.&lt;/p&gt;&lt;p&gt;&amp;nbsp;3. The number of network protocol is less than 50. &amp;nbsp; &lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8970412" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Networking" scheme="http://blogs.msdn.com/atckt/archive/tags/Networking/default.aspx" /></entry><entry><title>TransmitFile takes long time to send data</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/08/30/transmitfile-takes-long-time-to-send-data.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/08/30/transmitfile-takes-long-time-to-send-data.aspx</id><published>2008-08-30T08:13:00Z</published><updated>2008-08-30T08:13:00Z</updated><content type="html">&lt;P&gt;How long? haf day or maybe one day. You may encounter the symptom when calling &lt;A class="" href="http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx"&gt;TransmitFile&lt;/A&gt; to send a file from one socket to another socket.&amp;nbsp; There are many possible reasons may make TransmitFile hang, before you capture kernel dump, update NIC driver, close firewall, remove 3rd party LSP, remove network filter driver, you might want to check one simple setting in the first place: &lt;/P&gt;
&lt;P&gt;1. Open device manager&lt;/P&gt;
&lt;P&gt;2. Expand the tree and go to NIC&amp;nbsp;node&lt;/P&gt;
&lt;P&gt;3. Open "properties" of the NIC device&lt;/P&gt;
&lt;P&gt;4. Find "Speed and Duplex" settings in "advance" tab, check whether it is "auto". If not, change it back to auto&lt;/P&gt;
&lt;P&gt;5. Test your program again&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8908453" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Networking" scheme="http://blogs.msdn.com/atckt/archive/tags/Networking/default.aspx" /></entry><entry><title>Application which hosts Windows Media Player OCX may not be able to fully quit </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/07/14/application-which-hosts-windows-media-player-ocx-may-not-be-able-to-fully-quit.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/07/14/application-which-hosts-windows-media-player-ocx-may-not-be-able-to-fully-quit.aspx</id><published>2008-07-14T16:13:00Z</published><updated>2008-07-14T16:13:00Z</updated><content type="html">&lt;P&gt;You may be occasional encounter such symptom: your window based application that hosts a WMP OCX control does not fully quit after&amp;nbsp;you close the window. The window got disappear successfully, but you still can find the process running in task manager. If you're playing something in Windows Media Player 11 and you still can hear music after you close it, this is not the same story that I wanted to tell, you may want to read this &lt;A class="" href="http://support.microsoft.com/kb/938415/en-us" target=_blank mce_href="http://support.microsoft.com/kb/938415/en-us"&gt;KB&lt;/A&gt;. &lt;/P&gt;
&lt;P&gt;If you attach a debugger to the "phantom" process, and check the call stack of the main thread, you will be finding it's still in the message loop of the main window. What happened? Since you&amp;nbsp;clicked the exit button, the message loop should had been quitted. Does this mean system forgot to send WM_QUIT to the application? It's not so complicated, just a very simple reason, the main window did not receive the WM_QUIT message. How could it happen? There is a message pump and there is some code to handle different return value of GetMessage. In the own WMP OCX host window code, you also called PostQuitMessage in the WM_DESTORY. You may also consulted WMPHOST sample which ships with WMP SDK. You cannot find main difference between your code and the sample code. But WMPHOST just works fine on your machine. &lt;/P&gt;
&lt;P&gt;The symptom only happens&amp;nbsp;with WMP 10 or eariler. Yes, it's a bug and had been fixed in WMP11. But why only your application suffers the pain, does Microsoft use any magic&amp;nbsp;in WMPHOST sample? There is no magic. The solution is to handle WM_NCDESTORY. Because when WMP&amp;nbsp;OCX receives WM_QUIT, it eats the message and does not post to other&amp;nbsp;window of the thread,&amp;nbsp;so the main window&amp;nbsp;may never know it needs to quit. You can handle WM_NCDESTORY in the OCX host window's code, call PostQuitMessage in it and it will post the quit message to the main window inerrably. If you look WMPHOST code carefully, you'll find it just use this way to get around the bug. &lt;/P&gt;
&lt;P&gt;This symptom may not always happens if the main window receives WM_QUIT message before WMP OCX messge pump eats it. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8731489" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Playback" scheme="http://blogs.msdn.com/atckt/archive/tags/Playback/default.aspx" /></entry><entry><title>Silent license acquisition not working </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/06/05/silent-license-acquisition-not-working.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/06/05/silent-license-acquisition-not-working.aspx</id><published>2008-06-05T10:00:00Z</published><updated>2008-06-05T10:00:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;There are two kinds of license acquisition mechanism in MS DRM: silent and non-silent. If content providers implement both of them in DRM license server application, Windows Media Player should go silent mode first as long as&amp;nbsp;automatically downloads usage rights option is enabled. It&amp;nbsp;switches to non-silent mode when silent mode gets failed. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;If you’re content provider and gets some complains from the users which is about silent mode does not work, you might want to check two things:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1"&gt;&lt;SPAN lang=EN-US style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;When you package the content, make sure you use a correct URL string of license server. The URL string is a HTTP address (&lt;/FONT&gt;&lt;A href="http://xxxx/"&gt;&lt;FONT face=Calibri color=#0000ff size=3&gt;http://xxxx&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;), sometimes, the string may be changed to “http:\\xxx” by mistake or other reasons. This will make silent license acquisition failed but non-silent will still be working. WMP's non-silent related module&amp;nbsp;internally checks the string format and corrects it if it’s incorrect. This is a good and makes application robust, but it makes troubleshooting become hard. Because non-silent mode works, people may not suspect the license server URL string is incorrect, and pay more attention&amp;nbsp;to other stuff. Checking the license server URL string is pretty easy, you could review code or just open a DRM’d file in ASFViewer, you can find the string in the head. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: 0cm; mso-char-indent-count: 0"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1"&gt;&lt;SPAN lang=EN-US style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;If the license server application is developed by ASP.NET, ASP.NET may add some HTML tags in HTTP response string. These tags are invisible to developers and will confuse WMP9’s XML parser. To get around it, you might want to write code like below:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Response.Clear();&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Response.Write(liccenseresponse);&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Response.Flush();&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Response.End();&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Windows Media Player 10/11 do not have this issue because of the XML parser is different. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8574686" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Playback" scheme="http://blogs.msdn.com/atckt/archive/tags/Playback/default.aspx" /></entry><entry><title>AVIFileOpen changed on Vista</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/05/09/avifileopen-changed-on-vista.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/05/09/avifileopen-changed-on-vista.aspx</id><published>2008-05-09T12:31:00Z</published><updated>2008-05-09T12:31:00Z</updated><content type="html">&lt;P&gt;You may find your legacy program failed on calling AVIFileOpen when it is trying to open a custom AVI file on Windows Vista. The returned COM error is -2147205011(0x8004406D). But the program works fine on WinXP when opening same AVI file. &lt;/P&gt;
&lt;P&gt;If you're the owner of the AVI file, you might want to check your AVI file's header data. You might write incorrect Bitmap header info data or something into the AVI file. &lt;/P&gt;
&lt;P&gt;On Vista, AVIFileOpen calls &lt;A class="" href="http://msdn.microsoft.com/en-us/library/bb736097.aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/bb736097.aspx"&gt;ValidateBitmapInfoHeader&lt;/A&gt; internally to validate the source AVI file's bitmap header info; Some custom AVI files may not need a correct bitmap header for decoding and playback. This is not a problem on XP because XP's AVIFileOpen does not call this DShow helper function. &lt;/P&gt;
&lt;P&gt;Since this is an inline C++ function, you can read the source in DirectShow SDK's header file. &lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8478801" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Playback" scheme="http://blogs.msdn.com/atckt/archive/tags/Playback/default.aspx" /></entry><entry><title>A glance at WMS9.5's cache proxy plug-in</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/04/09/a-glance-at-wms9-5-s-cache-proxy-plug-in.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/04/09/a-glance-at-wms9-5-s-cache-proxy-plug-in.aspx</id><published>2008-04-09T12:34:00Z</published><updated>2008-04-09T12:34:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri&gt;&lt;/P&gt;
&lt;P&gt;It's time to try the built-in cache proxy plug-in of WMS9.5. If you already developed custom proxy cache plug-in for WMS9.1, you also can install it on WMS9.5 and the plug-in should be working fine as well. But you might want to test whether the own plug-in can conflict with the built-in plug-in if you enable both of them.&lt;/P&gt;
&lt;P&gt;The plug-in can be enabled from WMS9.5 admin MMC / root node (machine name) / Properties / Cache Proxy Management / WMS Cache Proxy:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;A title=来YUPOO看我的照片 href="http://www.yupoo.com/photos/view?id=ff80808119321bf3011932875ca92b49"&gt;&lt;IMG height=375 alt=WMS_CACHEPlugin src="http://pic.yupoo.com/atckt/778085600326/medium.jpg" width=500 border=0&gt;&lt;/A&gt; 
&lt;P&gt;Double click the plug-in, its property window will show up. In general tab page, you can check the status of the plug-in and type of the plug-in is acting. It could be a &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms741575(VS.85).aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms741575(VS.85).aspx"&gt;standard proxy&lt;/A&gt;, &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms752558(VS.85).aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms752558(VS.85).aspx"&gt;proxy redirect &lt;/A&gt;and &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms741577.aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms741577.aspx"&gt;reverse proxy&lt;/A&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;You can find the details of every type of proxy from Platform 2003 SDK, for example: &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms745165(VS.85).aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms745165(VS.85).aspx"&gt;Implement Reverse Proxy&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;In the cache tab page, you can set caching speed. Set it to maximum available bandwidth if you don't have any concern about it. In case you want to manually set a value, just don't set it too small.&lt;/P&gt;
&lt;P mce_keep="true"&gt;In proxy tab page, you can set the type of the cache proxy and the content server/alternate proxy's location. Currently, the plug-in only support one server. &lt;/P&gt;
&lt;P mce_keep="true"&gt;If you want the plug-in starts the streaming content rather than first downloading it, you might want to configure it in prestuff tab page. It can prestuff from stream or file.&lt;/P&gt;
&lt;P mce_keep="true"&gt;In order to test the plug-in, you should prepare another WMS machine which acts as content server or alternative proxy. Make the WMS 9.5's proxy plug-in point to that server. Create a publishing point named proxytest on the content server, the client machine, open Windows Media Player to access &lt;A href="mms://proxyserver/proxytest"&gt;mms://proxyserver/proxytest&lt;/A&gt;. If you configured everything correctly in the proxy plug-in, it will download proxytest's content from the content server automatically when the first time you access the link. If you configured prestuff in the plug-in, the plug-in should download it itself even if you don't access the link.&lt;/P&gt;
&lt;P mce_keep="true"&gt;To sum up, your old proxy cache plug-in which was developed for WMS 9 should still be able to be installed on WMS9.5 but you should test it to check whether it will conflict with WMS9.5's. Every features of the built-in proxy plug-in of WMS9.5 should be very easy to use if you have already known and used &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms741639(VS.85).aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms741639(VS.85).aspx"&gt;WMS9's proxy plug-in&lt;/A&gt; programming model. I strongly recommend you to read related documents in &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms741639(VS.85).aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms741639(VS.85).aspx"&gt;platform SDK&lt;/A&gt; to better understand how does proxy plug-in work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8371893" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Streaming" scheme="http://blogs.msdn.com/atckt/archive/tags/Streaming/default.aspx" /></entry><entry><title>Incorrect wma presentation time</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/03/14/incorrect-wma-presentation-time.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/03/14/incorrect-wma-presentation-time.aspx</id><published>2008-03-14T11:39:00Z</published><updated>2008-03-14T11:39:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;&lt;A class="" title=ASFView href="http://www.microsoft.com/windows/windowsmedia/forpros/format/ASFViewer.aspx" target=_blank mce_href="http://www.microsoft.com/windows/windowsmedia/forpros/format/ASFViewer.aspx"&gt;ASFView&lt;/A&gt; may complain some audio samples’ presentation time is incorrect if you open an ASF file using it. There are many different reasons can cause incorrect presentation time issue, if you wrote own encoder application based on Format SDK, you may take a look this case:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;Does the encoder re-package audio sample? One scenario could be the encoder read wma samples from source by using Format SDK and combine some of them into a big buffer as a sample for some reasons. How does the encoder calculate presentation for the re-packaged sample? Every wma sample read from source has a presentation stamp, when the encoder combines them into one sample, what’s the presentation time it assigns to the combined sample? &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;I didn’t really see the case I described above, I just found some encoders calculate incorrect presentation time and it looks like those encoders need to re-package wma sample and/or re-encode wma samples. Below is a workaround in pseudo code may help to get around the problem, but I cannot guarantee it always works. If anyone wrote an encoder and encounter similar incorrect presentation time issue and my workaround isn’t helpful, I’d like to take a look. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Note, the workaround is only for wma sample, if the problem you actually encounter is wmv sample, please DON'T USE the workaround. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;var1 = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;buffer_sample_size = pBuffer-&amp;gt;GetSize();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;block_align_size = GetBlockAlignSize();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;average_byte_per_second = GetABPS();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;last_present_time = GetLastPresentTime();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;while ( var1&amp;lt; buffer_sample_size)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;next_present_time = last_present_time &amp;nbsp;+ (var1*1000)/average_byte_per_second;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if ( (buffer_sample_size - var1) &amp;gt; block_align_size )&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = var1 + block_align_size;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = buffer_sample_size - block_align_size;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last_present_time = next_present_time;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;next_present_time = next_present_time + 10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="COLOR: gray; mso-bidi-font-size: 10.5pt; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; COLOR: gray; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-font-kerning: 1.0pt; mso-themecolor: background1; mso-themeshade: 128"&gt;WriteStreamSample (next_present_time,.…);&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8198719" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Encoding&amp;amp;Decoding" scheme="http://blogs.msdn.com/atckt/archive/tags/Encoding_2600_amp_3B00_Decoding/default.aspx" /></entry><entry><title>Adjust DSCP value </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/03/12/adjust-dscp-value.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/03/12/adjust-dscp-value.aspx</id><published>2008-03-12T13:03:00Z</published><updated>2008-03-12T13:03:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;Someone asked me how to adjust DSCP value on Windows 2003 server. Of course, you can adjust it in local policy’s network template, but I want to introduce another way.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;Firstly, you need to install QoS Packet Scheduler services:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;A title=来YUPOO看我的照片 href="http://www.yupoo.com/photos/view?id=ff80808118874ce80118a265937c55e4" mce_href="http://www.yupoo.com/photos/view?id=ff80808118874ce80118a265937c55e4"&gt;&lt;IMG height=450 alt="QoS Packet" src="http://pic.yupoo.com/atckt/8709653b1d51/medium.jpg" width=368 border=0 mce_src="http://pic.yupoo.com/atckt/8709653b1d51/medium.jpg"&gt;&lt;/A&gt; 
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;Secondly, you might want to download &lt;A class="" title="WS03 RESKIT" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&amp;amp;displaylang=en"&gt;Windows 2003 resource kit&lt;/A&gt; and install TCMON by double clicking tcmon.bat&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;After you start TCMON.exe, you will find the network interface cards name were listed in the combo box, and the list box should be empty by default. If you see the list is not empty, you might already have flow installed by other applications. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;You can add a new flow by clicking “add” button, in the parameter tab, just choose “best effort” under service type panel and uncheck other settings. Under advanced parameters tab, check “override DSCP (DCLASS)” and set the value you want. Under Filter tab, you can set different rules to fit your requirement. If you just want to apply the setting to every network traffic packet, please also create a filter with all default settings. Save it and get back to the main window of TCMON, you should be able to find the new flow has been added. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Calibri size=3&gt;Now you can run your network application to send/receive packets, you can use ethereal /network monitor or any other tools to check the DSCP value of every packet. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"&gt;Note, if you close TCMON or restart the machine, the DSCP value will be reset. If you need a tool which can run in background and/or auto start, you might want to write it by yourself. &lt;A class="" title="Traffic control fun" href="http://msdn2.microsoft.com/en-us/library/aa374469(VS.85).aspx" mce_href="http://msdn2.microsoft.com/en-us/library/aa374469(VS.85).aspx"&gt;Traffic Control Functions&lt;/A&gt; can help you to finish the tool.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"&gt;&lt;A href="http://technet.microsoft.com/en-us/magazine/cc162504.aspx"&gt;&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 宋体; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8168405" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Networking" scheme="http://blogs.msdn.com/atckt/archive/tags/Networking/default.aspx" /></entry><entry><title>Windows Media Services 9.5 installation</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/atckt/archive/2008/03/12/windows-media-services-9-5-installation.aspx" /><id>http://blogs.msdn.com/atckt/archive/2008/03/12/windows-media-services-9-5-installation.aspx</id><published>2008-03-12T09:39:00Z</published><updated>2008-03-12T09:39:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;Windows Media Services (WMS) 9.5 RTWed. Now you can grab all installation packages from &lt;A class="" title="WMS9.5 download" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9ccf6312-723b-4577-be58-7caab2e1c5b7&amp;amp;displaylang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9ccf6312-723b-4577-be58-7caab2e1c5b7&amp;amp;displaylang=en"&gt;MSSite&lt;/A&gt;. Be sure you’re downloading correct version, if you’re still using Windows 2008 RCx, you also can be able to find related WMS 9.5 RC packages from &lt;A class="" title=here href="http://www.microsoft.com/windows/windowsmedia/forpros/serve/prodinfo2008.aspx" mce_href="http://www.microsoft.com/windows/windowsmedia/forpros/serve/prodinfo2008.aspx"&gt;here&lt;/A&gt;. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;I assume you’ve downloaded and put them in a local folder on your WS08 machine, the installation sequence is: Server.msu, Core.msu and Admin.msu. After you installed these three packages, you should be able to find WMS9.5 shortcut in administrative tools of control panel; but you cannot&amp;nbsp;start it right now, we have something else&amp;nbsp;to be done. I’m not going to introduce WS08 new features,&amp;nbsp;I just tell you about the installation steps of WMS 9.5, but you may find many other system components of WS08 are similar with WMS &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:chmetcnv w:st="on" UnitName="in" SourceValue="9.5" HasSpace="True" Negative="False" NumberType="1" TCSC="0"&gt;9.5 in&lt;/st1:chmetcnv&gt; installation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;Open Server Manager from control panel / administrative tools, see figure 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;A title=来YUPOO看我的照片 href="http://www.yupoo.com/photos/view?id=ff80808118874da70118a19d3fe46610"&gt;&lt;IMG height=394 alt=addwms95 src="http://pic.yupoo.com/atckt/1170753aea01/medium.jpg" width=500 border=0&gt;&lt;/A&gt; 
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;It warns you that HTTP protocol is disabled because of port conflicting to IIS7. No worries, you can do what you did in WMS9.1 to fix this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;Now, you are able to&amp;nbsp;launch WMS 9.5! You should be very familiar with the WMS Admin MMC UI. The first thing you might want to do is to change the default &lt;st1:place w:st="on"&gt;&lt;st1:PlaceType w:st="on"&gt;port&lt;/st1:PlaceType&gt; of &lt;st1:PlaceName w:st="on"&gt;HTTP&lt;/st1:PlaceName&gt;&lt;/st1:place&gt; protocol of WMS 9.5, don’t forget to enable HTTP, it is useful for those silverlight clients. You may notice MMS protocol option has been totally removed from WMS 9.5. That’s true and HTTP should be able to resolve the compatibility issue with Windows Media Player 6.4. MMS prefix still can be used. Protocol rollover will happen if you type and play a MMS address (e.g. &lt;A href="mms://server/pp/test.wmv"&gt;&lt;FONT color=#0000ff&gt;mms://server/pp/test.wmv&lt;/FONT&gt;&lt;/A&gt;) in WMP, WMP will try to use RTSP firstly, if RTSP attempting fails, it will try HTTP. WMP will negotiate with WMS about protocol rollover, you need to not take care of it yourselves. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;The most important new feature in WMS9.5 should be a built-in cache/proxy plug-in; you can set it from the cache/proxy property of root node of the server. If you have experience about the old proxy/cache plug-in sample ships with WMS9.1 SDK, you should be able to use the plug-in very quickly. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;You can learn more about the benefits and new features of WMS9.5 from &lt;A class="" title="WMS95 Res" href="http://www.microsoft.com/windows/windowsmedia/forpros/serve/features.aspx" mce_href="http://www.microsoft.com/windows/windowsmedia/forpros/serve/features.aspx"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8168024" width="1" height="1"&gt;</content><author><name>atckt</name><uri>http://blogs.msdn.com/members/atckt.aspx</uri></author><category term="Streaming" scheme="http://blogs.msdn.com/atckt/archive/tags/Streaming/default.aspx" /></entry></feed>