Zdravim, udelal jsem si jednoduchou wpf app pro prehravani videa a nejak mi to nejede. Nevite nekdo proc?
MainWindow.xaml mam
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="movie.MainWindow"
x:Name="Window"
Title="MainWindow"
Width="640" Height="480">
<Grid x:Name="LayoutRoot">
<MediaElement Source="movie.avi" LoadedBehavior="Play" Name="mediaelement" MouseDown="mediaelement_MouseDown" />
<Button Margin="44,0,0,32" VerticalAlignment="Bottom" Height="70" Content="Button" HorizontalAlignment="Left" Width="190" Click="Button_Click"/>
</Grid>
</Window>
a v mainWindow.xaml.cs mam
private void mediaelement_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
mediaelement.Play();
}
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
mediaelement.Play();
}
a ani na jednu moznost mi to video nespusti a pritom v blendu je videt uvodni frame toho videa... nevite nekdo proc se mi video nespusti?? dik