eeb765f018
* rename * Update AVAudioSession+updateCategory.swift * fix bootstrap script * Update CameraView+AVAudioSession.swift * move audio input adding lower * Activate AudioSession only when starting recording * format * Deactivate Audio Session * remove audio input before deactivating audio session * Update CameraView+AVAudioSession.swift * log time * Update CameraView+AVAudioSession.swift * measure time with `measureElapsedTime` * Update project.pbxproj * only log in debug builds * bootstrap with bridge (RNN new API) * Mark two funcs as `@inlinable` * format * Update ReactLogger.swift * Make audioWriter optional (allow videos without sound) * only log frame drop reason in DEBUG * Make audio writing entirely optional * format * Use function name as label for measureElapsedTime * Update MeasureElapsedTime.swift * Update MeasureElapsedTime.swift * Mark AudioWriter as finished * set `automaticallyConfiguresApplicationAudioSession` once * Add JS console logging * log to JS console for a few logs * Update AVAudioSession+updateCategory.swift * format * Update JSConsoleHelper.mm * catch log errors * Update ReactLogger.swift * fix docs * Update RecordingSession.swift * Immediatelly add audio input * Update CameraView+AVCaptureSession.swift * Update CameraView+AVCaptureSession.swift * Update ReactLogger.swift * immediatelly set audio session * extract * format * Update TROUBLESHOOTING.mdx * hmm * Update AVAudioSession+updateCategory.swift * Create secondary `AVCaptureSession` for audio * Configure once, start stop on demand * format * fix audio notification interruptions * docs
30 lines
574 B
Objective-C
30 lines
574 B
Objective-C
//
|
|
// CameraBridge.h
|
|
// Cuvent
|
|
//
|
|
// Created by Marc Rousavy on 09.11.20.
|
|
// Copyright © 2020 mrousavy. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <React/RCTViewManager.h>
|
|
#import <React/RCTUIManager.h>
|
|
|
|
#import "FrameProcessorCallback.h"
|
|
#import "FrameProcessorRuntimeManager.h"
|
|
#import "RCTBridge+runOnJS.h"
|
|
#import "JSConsoleHelper.h"
|
|
|
|
#ifdef VISION_CAMERA_DISABLE_FRAME_PROCESSORS
|
|
static bool enableFrameProcessors = false;
|
|
#else
|
|
static bool enableFrameProcessors = true;
|
|
#endif
|
|
|
|
@interface CameraBridge: RCTViewManager
|
|
|
|
@end
|