Now, we are going to reproduce the video converted to a WMV format with an HD 720p Intranet encoding profile, before starting the game:
1. Open the
3DInvadersSilverlight
project.2. Open
3DInvadersSilverlightTestPage.aspx
(double-click on it in the Solution Explorer, found under3DInvadersSilverlight.Web
project) and enable hardware acceleration (GPU acceleration).3. Create a new sub-folder in the
ClientBin
folder in the3DInvadersSilverlight.Web
project. Rename it toMedia
.4. Right-click on the previously mentioned folder and select Add | Existing item... from the context menu that appears.
5. Go to the folder in which you have copied the previously encoded video in the WMV format (
C:\Silverlight3D\Invaders3D\Media
). Select the WMV file and click on Add. This way, the video file will be part of the web project, in the newMedia
folder, as shown in the following screenshot:6. Open
MainPage.xaml
(double-click on it in the Solution Explorer) and insert the...