Getting two videos to play at near enough exactly the same time
-
Hi, I am using windows media player in .net and have two videos that i need to play at exactly the same time on separate players. These players are WMP and WMP2 These videos are exactly the same time limit. They are both 21.34 seconds long I think the code went something like If label1.visble = true then WMP.url = ............ .wmv ' url of vide WMP2.url= .......... .WMV End if This code does work up to a point and i would have copied and pasted it in, but i am on a different computer. This works however this is a massive "lag" between one video starting up and the next. Does anyone have any ideas as to how to get both videos starting at the same time on button click? I didn't know if perhaps the videos could be preloaded so when the user does click the correct button the videos play straight away, and the videos don't take time loading :) Many thanks Dan
-
Hi, I am using windows media player in .net and have two videos that i need to play at exactly the same time on separate players. These players are WMP and WMP2 These videos are exactly the same time limit. They are both 21.34 seconds long I think the code went something like If label1.visble = true then WMP.url = ............ .wmv ' url of vide WMP2.url= .......... .WMV End if This code does work up to a point and i would have copied and pasted it in, but i am on a different computer. This works however this is a massive "lag" between one video starting up and the next. Does anyone have any ideas as to how to get both videos starting at the same time on button click? I didn't know if perhaps the videos could be preloaded so when the user does click the correct button the videos play straight away, and the videos don't take time loading :) Many thanks Dan
Using Media Players? It's not going to happen. You'd have to play the videos yourself using DirectX DirectShow or some other technology.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...