on my window_loaded, i put this:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
mediaElement1.Source = new Uri("/WpfTest;component/Videos/acar_ikan_masin.mp4", UriKind.Relative);
}
and the file acar_ikan_masin.mp4 is already in my project (I add it using Add>Existing Item> to a new folder Videos which I created). but it seems vs can't find the video. the mediaelement is working fine because i could just drag and drop any video file to the mediaelement and it will play. what is the correct way to set the source, for a file which has already been added to the project?