How do yo play a video with silverlight?
does Visual Studio come with a video player component build in? or do I need to make a video player?
To play these videos you must use Microsoft Internet Explorer, which support Siverlight technology. Other web browsers, such as Google Chrome or Mozilla Firefox or Apple Safari, do not support Silverlight technology, but you can add Microsoft Internet Explorer as an extension to these web browser.
You must use a browser that supports Silverlight content to access a Silverlight page. To work around this issue on versions 42 to 44 of Chrome, follow these steps: On the address bar in Chrome, type chrome://flags/#enable-npapi . In the Enable NPAPI Mac, Windows box, click Enable.
Select the Windows button, select All Programs, select Microsoft Silverlight, and then select Microsoft Silverlight.
As often is the case, it depends what you're requirements are.
You can use the media element which comes with Silverlight (msdn info here) , however, that means building everything from scratch, it does not come with a "player chrome", as in buttons and visual styles.
If you want a pre-built "player", there's at least a couple of options, the Expression Encoder tool (a free version is available), comes with a number of Silverlight players that you can freely use and modify if you wish. You find them under the "templates" section in expression encoder tool.
Another option is to use the "Microsoft Media Platform: Player Framework" (formerly known as Silverlight Media Framework (SMF)), which is a open source project which Microsoft is involved in, it comes with a fully featured "player" and is built on industry standards, you can find it at http://smf.codeplex.com.
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With