I've realized that I made a mistake in my previous post about the simple video player. The problem with my video player was that it started loading the video when the web page was loaded. That is something users with low bandwidth are not so happy about (especially when the video is about 10 MB, as in this case). If you change the XAML to contain a play button like this...
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<MediaElement
x:Name="Video"
Width="420"
Height="236"
MouseLeftButtonDown="onVideoMouseDown"
MediaEnded="onVideoMediaEnded"/>
<Canvas
x:Name="PlayButton"
Canvas.Left="185"
Canvas.Top="93"
Width="50"
Height="50"
MouseLeftButtonDown="onButtonMouseDown">
<Rectangle
Fill="#3F000000"
Stroke="#FF000000"
StrokeThickness="2"
RadiusX="10"
RadiusY="10"
Width="50"
Height="50"/>
<Path
Fill="#FF000000"
Stretch="Fill"
Stroke="#FFD10000"
StrokeThickness="0"
Width="24"
Height="34"
Canvas.Left="15"
Canvas.Top="8"
Data="M224,184 L224,208 240,196.37082 z"/>
</Canvas>
</Canvas>
...and add the following script...
function onButtonMouseDown(sender, eventArgs)
{
sender.findName("PlayButton").Visibility="Collapsed";
sender.findName("Video").Source="http://www.businessanyplace.net/chris/slintro.wmv";
}
...you will be much better off because the only thing that is loaded initially is the XAML. When the play button is clicked, it will disappear, and the video starts loading and playing. The play/pause functionality is still the same as before. I have updated my previous post now, so I hope all you with lower bandwidth will be happy about that.