Reputation: 6898
I'm using VB.net 2010 and WPF 4. I need to have a smooth transition between two videos played on the mediaelement. I absolutely cannot use anything that requires me to use a winhost in the WPF window, as that will make my project impossible (since the video is full screen, and the controls are over the video)
Basically, I need for the video to play through, and then smoothly go to another video specified in code behind. I cannot splice the two videos together - they must be separate.
How do I have the videos transition smoothly, with no "blink"?
Upvotes: 4
Views: 1630
Reputation: 3130
I'm guessing without testing here. You're probably going to need some CPU cores and a good video card.
If you have the memory, use two MediaElement
s.
UIElements
so this should work...MediaElement
, animate the first one's opacity to zero while simultaneously animating the second one to fully opaque. Upvotes: 2