Passing Media URL via Silverlight PlugIn

2 posts, 0 answers
  1. Alex Tushinsky
    Alex Tushinsky avatar
    52 posts
    Member since:
    Feb 2006

    Posted 30 Sep 2012 Link to this post

    Is it possible to pass in the URL of the video for the player to play using a parameter in the Silverlight object declaration?  In my scenario, I'm working with an ASPX page, and the Media Player would be a component on that page (Silverlight would NOT be the entire UI).  As such, I'd like to use the MediaPlayer a lot like I would a Flash based video, and dynamically have C# construct the silverlight object, and pass in the correct parameter (movie url).

    I am also curious the same thing when it comes to the PDFViewer.  

    Thank you in advance,
    Alex Tushinsky
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 03 Oct 2012 Link to this post

    Hello  Alex,

    You can pass the URL through the initparams parameter of the object hosting the Silverlight application. Then you can access the source when the Silverlight application starts in its Application_Startup method. This approach is described here and I also attached a sample solution to get you started.

    Let us know if you need more info.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top