Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

How to use Windows Media Server and MMS in Silverlight? RSS

53 replies

Last post Mar 21, 2011 08:48 AM by guinxxx

(1)
  • SmallWhiteBear

    SmallWhiteBear

    Member

    95 Points

    26 Posts

    How to use Windows Media Server and MMS in Silverlight?

    Jul 21, 2007 07:54 AM | LINK

    Dear all

    In the Silverlight 1.0,
    When I added a new publish point to Windows Media Server and used the Silverlight to connect,
    there were nothing happened.
    I have no idea how to resolve my problem, and the complete XAML code is below:

    <Canvas
      xmlns="http://schemas.microsoft.com/client/2007"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Width="640" Height="480">
      <MediaElement x:Name="MediaElement1" Source="mms://192.168.1.43/SilverlightMmsSample"
        Width="640" Height="480" />
    </Canvas> 

    Is there any ideas?
    Thanks for help!

  • jlvillaraza

    jlvillaraza

    Member

    104 Points

    56 Posts

    Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 21, 2007 09:42 AM | LINK

     

    I ran into this problem myself when i installed media server on a box with IIS on it. You can try what i did, go to the Media Services Management Console, select your server and click properties. You'll find control protocol and double click WMS HTTP Server Control Protocol. In the dialog, select to use another port other than 80, since IIS would be using that. In your xaml code you should then modify your URL to include the port number. mms://server:443/path/to/vid or something like that.

     Hope that helps!

    jocelyn villaraza
  • SmallWhiteBear

    SmallWhiteBear

    Member

    95 Points

    26 Posts

    Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 21, 2007 11:31 AM | LINK

    Dear jlvillaraza

    You are right!!
    After I modify the port and start the WMS HTTP Server Control Protocol,
    the Silverlight can play the movie using the mms protocol on the Media Server!
    Thank you very much!

  • kotani

    kotani

    Member

    24 Points

    7 Posts

    Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 25, 2007 07:06 AM | LINK

    Is it really mms protocol ??

    I feel It's http streaming on port 443 (not mms protocol)....

  • N.Tony

    N.Tony

    Member

    36 Points

    19 Posts

    Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 27, 2007 04:02 PM | LINK

    Thank you, jlvillaraza! you solve my problem too!


    silverlight Media Stream Server AG_E_NOT_FOUND MMS

  • jlvillaraza

    jlvillaraza

    Member

    104 Points

    56 Posts

    Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 27, 2007 06:53 PM | LINK

    always glad to help [Y]

    jocelyn villaraza
  • mentas

    mentas

    Member

    53 Points

    41 Posts

    Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 30, 2007 03:33 PM | LINK

    Not working for Silverlight RC :(

  • jlvillaraza

    jlvillaraza

    Member

    104 Points

    56 Posts

    Re: Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 30, 2007 03:42 PM | LINK

    Hi, I just tried it out myself, with a basic project using blend 2 august prev, it works fine. Doesn't work with the code generated by Media Encoder though as far as i've tried. [:S]

    jocelyn villaraza
  • SmallWhiteBear

    SmallWhiteBear

    Member

    95 Points

    26 Posts

    Re: Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 30, 2007 03:48 PM | LINK

    Dear mentas

    After I update the Silverlight component from Beta to RC version and modify some code in my original project, my html sample of MMS streaming do work fine without any change of server side.
    Maybe you can say something more about the problem.

  • jlvillaraza

    jlvillaraza

    Member

    104 Points

    56 Posts

    Re: Re: Re: Re: How to use Windows Media Server and MMS in Silverlight?

    Jul 30, 2007 03:49 PM | LINK

    i created a new silverlight javascript project then edited my xaml to the ff:

    <Canvas
     xmlns="http://schemas.microsoft.com/client/2007"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     Width="640" Height="480"
     Background="White"
     x:Name="Page"
     >
     <MediaElement Source="mms://server:443/path/video.wmv"  Width="640" Height="480"  />
    </Canvas>

    jocelyn villaraza