public virtual void StopRecording () {
     if (audioSource != null) audioSource.Dispose();
     audioSource = null;
     NatCorderBridge.StopRecording();
     Texture2D.Destroy(framebuffer);
     framebuffer = null;
 }
Example #2
0
 public void StopRecording()
 {
     if (audioSource != null)
     {
         audioSource.Dispose();
     }
     NatCorderBridge.StopRecording();
 }
 public override void StopRecording()
 {
     if (audioSource != null)
     {
         audioSource.Dispose();
     }
     #if UNITY_WEBGL && !UNITY_EDITOR
     var pathPtr = NatCorderBridge.StopRecording(); // Signature is different
     #else
     var pathPtr = IntPtr.Zero;
     #endif
     Texture2D.Destroy(framebuffer);
     audioSource = null;
     framebuffer = null;
     var callback = new GameObject("NatCorderWebGL Delegate").AddComponent <VideoDelegate>();
     callback.StartCoroutine(OnVideo(pathPtr, callback));
 }
Example #4
0
 public virtual void StopRecording () {
     NatCorderBridge.StopRecording();
     Texture2D.Destroy(framebuffer);
     framebuffer = null;
 }
Example #5
0
 public void StopRecording()
 {
     NatCorderBridge.StopRecording();
 }