示例#1
0
 public static VideoSourcePlayer restart(this VideoSourcePlayer videoPlayer)
 {
     videoPlayer.invokeOnThread(
         () => {
         videoPlayer.Start();
     });
     return(videoPlayer);
 }
示例#2
0
 public static VideoSourcePlayer play(this VideoSourcePlayer videoPlayer, string aviFile)
 {
     videoPlayer.invokeOnThread(
         () => {
         var videoSource = new FileVideoSource(aviFile);
         videoPlayer.SignalToStop( );
         videoPlayer.WaitForStop( );
         videoPlayer.VideoSource = videoSource;
         videoPlayer.Start( );
     });
     return(videoPlayer);
 }