Silverlight MediaElement 使用方法

 
Silverlight MediaElement 使用方法
 

   MainPage.xaml
 
   <UserControl x:Class="SilverlightApplication1.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"
      d:DesignHeight="600" d:DesignWidth="800">
 
      <Grid x:Name="LayoutRoot" Background="White">
         <MediaElement Height="600" HorizontalAlignment="Left" Name="mediaElement1"
         VerticalAlignment="Top" Width="800" Source="mms://<Encoder IP>:<Encoder Port>/" />
      </Grid>
   </UserControl>