开发者

Synchronize WPF MediaElement Video with second window

开发者 https://www.devze.com 2023-04-04 07:19 出处:网络
I\'m playing a video with the WPF MediaElement and OnButton Click it opens a second window (I move it with Screens.AllScreens[1] to my second monitor).

I'm playing a video with the WPF MediaElement and OnButton Click it opens a second window (I move it with Screens.AllScreens[1] to my second monitor). On second window I've created a new instance of 开发者_如何学编程mediaelement and put the value from mediaelement1.position to mediaelemnt2.position. Now I have a one second delay in my second window :(.

Is there a way to handle this?

Thanks for help


You can use a VisualBrush. Just send mediaElement to 2nd windows and apply VisualBrush. Sample : rect.Fill = new VisualBrush(mediaElement);

0

精彩评论

暂无评论...
验证码 换一张
取 消