How to play MP4 (H.264 video) in Silverlight 3 (or 4) from a URL?

后端 未结 2 770
情歌与酒
情歌与酒 2021-01-21 22:56

So I have some URL of an MP4 file. I want to develop a simple Silverlight application to play it.

How to do it? (Preferably with example code.)

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-21 23:42

    Ole Jak,

    Here is a suggested step-by-step:

    Step 1: Create a sample Silverlight application with Visual Studio (File / New Project / Silverlight Application

    Step 2: In your newly create project, edit the MainPage.xaml, and place the following code inside the UserControl's Grid

    
    

    Step 3: Build and Run!

    Jim

提交回复
热议问题