Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • Yi-Lun Luo - MSFT

    Yi-Lun Luo -...

    All-Star

    25149 Points

    2759 Posts

    Microsoft

    Re: Creating a MediaElement in C#

    Mar 20, 2008 04:31 AM | LINK

    Hello, your code should work. Please make sure:

    First, you must run your application from http protocol. Create a new web site, and add a Silverlight Link. Run the web site, and you should be OK.

    Second, if you choose to use relative path, you have to put the videos under ClientBin folder on your web site.

    shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.