Exemple #1
0
 private void onMovieSegmentCaptured(MovieSegmentCapturedEventArgs args)
 {
     if (MovieSegmentCaptured != null)
     {
         MovieSegmentCaptured(this, args);
     }
 }
        void HandleMovieSegmentRecordingComplete(object sender, MovieSegmentRecordingCompleteEventArgs args)
        {
            try {
                // grab the pertinent event data
                var captureInfo = new MovieSegmentCapturedEventArgs {
                    StartedAt            = currentSegmentStartedAt,
                    DurationMilliSeconds = movieSegmentDurationInMilliSeconds,
                    File = args.Path
                };

                // conditionally start recording the next segment
                if (args.ErrorOccured == false && breakMovieIntoSegments && isCapturing)
                {
                    StartRecordingNextMovieFilename();
                }

                // raise the capture event to external listeners
                OnMovieSegmentCaptured(captureInfo);
            } catch (Exception ex) {
                Console.WriteLine(ex.Message);
            }
        }
Exemple #3
0
        private void handleMovieSegmentRecordingComplete(object sender, MovieSegmentRecordingCompleteEventArgs args)
        {
            try
            {
                // grab the pertinent event data
                MovieSegmentCapturedEventArgs captureInfo = new MovieSegmentCapturedEventArgs();
                captureInfo.StartedAt            = currentSegmentStartedAt;
                captureInfo.DurationMilliSeconds = movieSegmentDurationInMilliSeconds;
                captureInfo.File = args.Path;

                // conditionally start recording the next segment
                if (args.ErrorOccured == false && breakMovieIntoSegments && isCapturing)
                {
                    startRecordingNextMovieFilename();
                }

                // raise the capture event to external listeners
                onMovieSegmentCaptured(captureInfo);
            }
            catch
            {
            }
        }
		void HandleMovieSegmentCaptured (object sender, MovieSegmentCapturedEventArgs args)
		{
			LogMessage (string.Format("Media file captured to '{0}'", Path.GetFileName(args.File)));
		}
 private void handleMovieSegmentCaptured(object sender, MovieSegmentCapturedEventArgs args)
 {
     logMessage(string.Format("Media file captured to '{0}'", Path.GetFileName(args.File)));
 }
		private void onMovieSegmentCaptured( MovieSegmentCapturedEventArgs args )
		{
			if (  MovieSegmentCaptured != null )
			{
				MovieSegmentCaptured( this, args );
			}
		}
		private void handleMovieSegmentRecordingComplete(object sender, MovieSegmentRecordingCompleteEventArgs args )
		{
			try
			{
				// grab the pertinent event data
				MovieSegmentCapturedEventArgs captureInfo = new MovieSegmentCapturedEventArgs();
				captureInfo.StartedAt = currentSegmentStartedAt;
				captureInfo.DurationMilliSeconds = movieSegmentDurationInMilliSeconds;
				captureInfo.File = args.Path;

				// conditionally start recording the next segment
				if ( args.ErrorOccured == false && breakMovieIntoSegments && isCapturing)
				{
					startRecordingNextMovieFilename();
				}

				// raise the capture event to external listeners
				onMovieSegmentCaptured( captureInfo );
			}
			catch
			{
			}
		}
		void OnMovieSegmentCaptured( MovieSegmentCapturedEventArgs args )
		{
			if (MovieSegmentCaptured != null)
				MovieSegmentCaptured (this, args);
		}
		void HandleMovieSegmentRecordingComplete (object sender, MovieSegmentRecordingCompleteEventArgs args)
		{
			try {
				// grab the pertinent event data
				var captureInfo = new MovieSegmentCapturedEventArgs {
					StartedAt = currentSegmentStartedAt,
					DurationMilliSeconds = movieSegmentDurationInMilliSeconds,
					File = args.Path
				};

				// conditionally start recording the next segment
				if (args.ErrorOccured == false && breakMovieIntoSegments && isCapturing)
					StartRecordingNextMovieFilename ();

				// raise the capture event to external listeners
				OnMovieSegmentCaptured (captureInfo);
			} catch (Exception ex) {
				Console.WriteLine (ex.Message);
			}
		}