This is a migrated thread and some comments may be shown as answers.

Passing Media URL via Silverlight PlugIn

1 Answer 11 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Alex Tushinsky
Top achievements
Rank 2
Alex Tushinsky asked on 30 Sep 2012, 06:17 PM
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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 03 Oct 2012, 04:17 PM
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.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
MediaPlayer
Asked by
Alex Tushinsky
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or