private void CustomVideoClicked(object sender, EventArgs e)
 {
     mediaElement.Source = null;
     MediaStreamSource source = new VideoMediaStreamSource(
         (int)mediaElement.ActualWidth,
         (int)mediaElement.ActualHeight);
     mediaElement.SetSource(source);
     sourceTextBlock.Text = "custom video";
 }
Beispiel #2
0
        private void CustomVideoClicked(object sender, EventArgs e)
        {
            mediaElement.Source = null;
            MediaStreamSource source = new VideoMediaStreamSource(
                (int)mediaElement.ActualWidth,
                (int)mediaElement.ActualHeight);

            mediaElement.SetSource(source);
            sourceTextBlock.Text = "custom video";
        }