locked
WMP cannot play rtsp and mms stream urls, thus can play http urls in Session 0 of Win Server 2008 RRS feed

  • Question

  • In Windows Server 2003, we developed a program. The architecture is:
    (1)There is a Service (called ServA),
    (2)There is a process (called ProcB), it is an override Windows Media Player by implementing some necessary WMP interfaces.
    (3)ServA will start up ProcB through CreateProcess to play stream urls. ServA and ProcB are all in Session 0.

    In Server 2003, it works well.

    Now we are transferring it to Windows Server 2008. In Server 2008, it works normally with http protocol urls (likehttp://xx/xx.wmv). For rtsp and mms protocol urls (like rtsp://xx/xx.wmv, mms://xx/xx.asf), it cannot play successfully, and return the error code: 0xC00D11B1, error description: “Windows Media Player encountered a problem while playing the file.”

    If we donnot start ServA as a service, but just double clicked to start up it. Then ServA and ProcB are all in Session 1. At this time the rtsp and mms protocol urls can play successfully.

    So we consider this problem has relation with "Session 0 Isolation". But why WMP plays http url normally, thus rtsp and mms urls fails? I have searched MSDN and found one question that: "playing a rtsp url on WMPlayer uses DirectShow instead of Media Foundation in Win7" (http://social.msdn.microsoft.com/Forums/en/mediafoundationdevelopment/thread/0a149022-ab3f-4791-a486-c3f7553a84cc).

    Is this the actual reason why playing http url is normal, thus playing rtsp or mms url pops up error dialog in Server 2008?

    In Server 2003, the environment is:
    Windows Server 2003 R2 Enterprise Edtion, Service Pack 2, 64bit.
    Windows Media Player version: 10.00.00.4008

    In Server 2008, the environment is:
    Windows Server 2008 R2 Standard, Service Pack 1, 64 bit.
    Windows Media Player version: 12.0.7601.17514

    Thank you!


    • Edited by leo.zhangjl Thursday, August 2, 2012 8:06 AM
    Thursday, August 2, 2012 8:04 AM

All replies

  • The MF HTTP bytestream used by WMP for regular HTTP streaming uses WinHTTP under the hood and is validated to work in session 0.  You are correct that WMP uses DirectShow instead of Media Foundation for mms/rtsp, and this has not been validated for session 0.  I do not know of a specific reason why it would not work, but we have never specifically tried to make DirectShow rtsp/mms streaming work in session 0.
    Friday, August 17, 2012 6:52 PM