Beispiel #1
0
 /// <summary>
 /// Dispose method
 /// </summary>
 public void Dispose()
 {
     // check for null since it's possible that Start was never called
     if (this.writer != null)
     {
         this.writer.Close();
         this.writer.Dispose();
         this.writer = null;
         MP4Writer.Shutdown();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Dispose method.
 /// </summary>
 public void Dispose()
 {
     // check for null since it's possible that Start was never called
     if (this.writer != null)
     {
         this.writer.Close();
         ((IDisposable)this.writer).Dispose(); // Cast to IDisposable to suppress false CA2213 warning
         this.writer = null;
         MP4Writer.Shutdown();
     }
 }
Beispiel #3
0
 /// <summary>
 /// Called once all the subscriptions are established.
 /// </summary>
 private void OnPipelineRun()
 {
     MP4Writer.Startup();
     this.writer = new MP4Writer();
     this.writer.Open(this.filename, this.configuration.Config);
 }
Beispiel #4
0
 /// <summary>
 /// Called once all the subscriptions are established.
 /// </summary>
 /// <param name="onCompleted">Delegate to call when the execution completed</param>
 /// <param name="descriptor">If set, describes the playback constraints</param>
 void IStartable.Start(Action onCompleted, ReplayDescriptor descriptor)
 {
     MP4Writer.Startup();
     this.writer = new MP4Writer();
     this.writer.Open(this.filename, this.configuration.Config);
 }
Beispiel #5
0
 /// <summary>
 /// Called by the pipeline when media capture should be stopped
 /// </summary>
 void IStartable.Stop()
 {
     this.writer.Close();
     this.writer = null;
     MP4Writer.Shutdown();
 }