001
001

Reputation: 65117

play video in silverlight?

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?

Upvotes: 6

Views: 2077

Answers (2)

Ola Karlsson
Ola Karlsson

Reputation: 9193

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!

Upvotes: 3

Jaroslav Jandek
Jaroslav Jandek

Reputation: 9563

In SL:

<MediaElement x:Name="MyVid"
              Source="http://abc.xyz.com/MyVid.wmv"
              Height="250"
              Width="350"
              AutoPlay="True"/>

Server-side needs to support MMS (RTSP protocol - streaming) or progressive downloads (MMS on the MediaElement's side takes care of both). Videos should conform to the SMPTE 421M video codec standard (VC-1).

Upvotes: 0

Related Questions