Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have some trouble with my video source player taht i use in my project.
display is very slow (lag)..
what happen with mya project?

this is my code..
C#
videoSourcePlayer1.SignalToStop();
videoSourcePlayer1.WaitForStop();
videoSourcePlayer2.SignalToStop();
videoSourcePlayer2.WaitForStop();

VideoCaptureDevice videoSource = new VideoCaptureDevice(webcam[comboBox1.SelectedIndex].MonikerString);

videoSource.DesiredFrameSize = new Size(320, 240);
//videoSource.DesiredFrameSize = new Size(160,120);
videoSource.DesiredFrameRate = 30;



videoSourcePlayer1.VideoSource = videoSource;
videoSourcePlayer1.Start();
videoSourcePlayer2.VideoSource = videoSource;
videoSourcePlayer2.Start();
Posted
Comments
gggustafson 3-Jun-14 10:36am    
Are you using Silverlight? How is videoSourcePlayer1 declared? What is videoSourcePlayer2 for?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900