playing two videos simultaneously

我只是一个虾纸丫 提交于 2019-12-01 18:53:28

Another option would be try using CompositionTarget.Rendering as described here: http://msdn.microsoft.com/en-us/library/ms748838.aspx

The problem you may run into is that the time between calls is not guaranteed and so you may get frames running faster or slower.

However Charles Petzold has a post showing how to determine the time elapsed in a manner that would allow you to pick the correct frame to display whenever the Rendering event happens. The example code should be helpful: http://www.charlespetzold.com/blog/2010/06/CompositionTarget-Rendering-and-RenderEventArgs.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!