2013-08-12 77 views
1

我在windows phone项目中。在这个项目中,我通过使用我的网络服务获得了我的应用程序上的mp4视频。我想像这里一样在设备上播放这种媒体;如何在Windows Phone 8中播放mp4媒体

http://www.windowsphone.com/tr-tr/store/app/goller-cepte/522e5324-15b1-4ef5-82a2-340aaa781087

你看第7的画面。我想像那里一样播放我的媒体。

我做了一个结构来播放这样的媒体,但我不喜欢那样,并且它不是播放媒体的健康选择。

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" Background="White" DataContext="{Binding Video}"> 
      <MediaElement x:Name="VideoPlayer" AutoPlay="False" IsMuted="False" Stretch="UniformToFill" Margin="10,82,10,307" MediaOpened="VideoPlayerMediaOpened" /> 
      <TextBlock HorizontalAlignment="Left" Foreground="Black" Margin="10,10,0,0" TextWrapping="Wrap" Text="{Binding video_baslik}" VerticalAlignment="Top" Height="67" Width="436"/> 
      <TextBlock HorizontalAlignment="Left" Foreground="Black" Margin="0,516,0,0" TextWrapping="Wrap" Text="{Binding video_spot}" VerticalAlignment="Top" Height="170" Width="456"/> 
      <Slider x:Name="MediaProgress" Margin="0,394,0,217" Maximum="1" LargeChange="0.1" ValueChanged="MediaProgressValueChanged"/> 
      <TextBlock x:Name="ElapsedTime" Foreground="Black" HorizontalAlignment="Left" Margin="10,468,0,0" TextWrapping="Wrap" Text="00:00" VerticalAlignment="Top" Width="60" Height="30" IsHitTestVisible="False"/> 
      <TextBlock x:Name="RemainingTime" Foreground="Black" HorizontalAlignment="Right" Margin="0,472,10,0" TextWrapping="Wrap" Text="00:00" VerticalAlignment="Top" Width="60" Height="30" IsHitTestVisible="False"/> 
     </Grid> 

任何人都可以帮我播放像链接第7张图片的媒体吗?

非常感谢。

回答

相关问题