Ejemplo n.º 1
0
        public void SetSurfaceHolder(bool isCallbacFunckDelete)
        {
            if (isCallbacFunckDelete)
            {
                surfaceHolder.RemoveCallback(this);
            }
            SurfaceView surfaceView = Photo.CreateSurfaceView(this);

            layout.AddView(surfaceView);
            surfaceHolder = surfaceView.Holder;
            surfaceHolder.AddCallback(this);
            surfaceHolder.SetType(SurfaceType.PushBuffers);
        }
Ejemplo n.º 2
0
 private void StartVideoRecord()
 {
     try
     {
         if (!cameraWasClosed)
         {
             CameraClose(false);
         }
         video = new Video(sessionPath);
         video.SufaceHolder = Photo.CreateSurfaceView(this).Holder;
         StartTimer(ref timerUpdateVideoView, timerUpdateVideoView_Elapsed);
         cameraWasClosed = true;
     }
     catch { };
 }