Exemple #1
0
 public NatCamiOS()
 {
     DispatchUtility.onPause  += OnPause;
     DispatchUtility.onOrient += OnOrient;
     NatCamNative.RegisterCoreCallbacks(INatCamBase.OnStart, INatCamBase.OnFrame, INatCamBase.OnPhoto);
     #if NATCAM_EXTENDED
     NatCamNative.RegisterExtendedCallbacks(OnBarcode, OnFace, OnText, OnSave);
     #endif
     #if NATCAM_PROFESSIONAL
     SetBitrate(VideoBitrate);
     SetRecordAudio(RecordAudio);
     NatCamNative.RegisterProfessionalCallbacks(OnVideo);
     #endif
 }
Exemple #2
0
 public NatCamAndroid()
 {
     natcam                    = new AndroidJavaClass("com.yusufolokoba.natcam.NatCam");
     renderDispatch            = new RenderDispatch();
     DispatchUtility.onPause  += OnPause;
     DispatchUtility.onOrient += OnOrient;
     Native.RegisterCoreCallbacks(INatCamBase.OnStart, INatCamBase.OnFrame, INatCamBase.OnPhoto);
     #if NATCAM_EXTENDED
     natcamextended = new AndroidJavaClass("com.yusufolokoba.natcamextended.NatCamExtended");
     Native.RegisterExtendedCallbacks(OnBarcode, OnFace, OnText, OnSave);
     #endif
     #if NATCAM_PROFESSIONAL
     natcamprofessional = new AndroidJavaClass("com.yusufolokoba.natcamprofessional.NatCamProfessional");
     natcamprofessional.CallStatic("setBitrate", VideoBitrate);
     natcamprofessional.CallStatic("setRecordAudio", RecordAudio);
     Native.RegisterProfessionalCallbacks(OnVideo);
     #endif
 }