void OnMovieSegmentRecordingComplete (string path, int length, bool errorOccurred)
		{
			if ( MovieSegmentRecordingComplete != null ) {
				try {
					var args = new MovieSegmentRecordingCompleteEventArgs {
						Path = path,
						Length = length,
						ErrorOccured = errorOccurred
					};

					MovieSegmentRecordingComplete (this, args);
				} catch (Exception e) {
					Console.WriteLine (e.Message);
				}
			}
		}
 private void onMovieSegmentRecordingComplete(string path, int length, bool errorOccurred)
 {
     if (MovieSegmentRecordingComplete != null)
     {
         try
         {
             MovieSegmentRecordingCompleteEventArgs args = new MovieSegmentRecordingCompleteEventArgs();
             args.Path         = path;
             args.Length       = length;
             args.ErrorOccured = errorOccurred;
             MovieSegmentRecordingComplete(this, args);
         }
         catch
         {
         }
     }
 }
		private void onMovieSegmentRecordingComplete( string path, int length, bool errorOccurred )
		{
			if ( MovieSegmentRecordingComplete != null )
			{
				try
				{
					MovieSegmentRecordingCompleteEventArgs args = new MovieSegmentRecordingCompleteEventArgs();
					args.Path = path;
					args.Length = length;
					args.ErrorOccured = errorOccurred;
					MovieSegmentRecordingComplete(this, args);
				}
				catch
				{
				}
			}
		}
Exemplo n.º 4
0
        void OnMovieSegmentRecordingComplete(string path, int length, bool errorOccurred)
        {
            if (MovieSegmentRecordingComplete != null)
            {
                try {
                    var args = new MovieSegmentRecordingCompleteEventArgs {
                        Path         = path,
                        Length       = length,
                        ErrorOccured = errorOccurred
                    };

                    MovieSegmentRecordingComplete(this, args);
                } catch (Exception e) {
                    Console.WriteLine(e.Message);
                }
            }
        }
        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);
            }
        }
Exemplo n.º 6
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
            {
            }
        }
Exemplo n.º 7
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 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);
			}
		}