react-native-uvc-camera-android
TypeScript icon, indicating that this package has built-in type declarations

0.1.13 • Public • Published

React Native UVC Camera Android

Installation (Android)

  • In android/settings.gradle
include(':libausbc')
project(':libausbc').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-uvc-camera-android/android/libausbc')

include ':libuvc'
project(':libuvc').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-uvc-camera-android/android/libuvc')

include ':libpush'
project(':libpush').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-uvc-camera-android/android/libpush')

include ':libnative'
project(':libnative').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-uvc-camera-android/android/libnative')

include ':libuvccommon'
project(':libuvccommon').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-uvc-camera-android/android/libuvccommon')
  • In android/app/src/main/AndroidManifest.xml
...
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-sdk
        android:minSdkVersion="18"

To enable video recording feature you have to add the following code:

    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  • In android/build.gradle
...
    ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33

        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"

        androidXVersion = '1.3.1'
        versionCompiler = 29
        versionTarget = 27
        versionCode = 1
        versionNameString = '1.0.0'
        javaSourceCompatibility = JavaVersion.VERSION_1_8
        javaTargetCompatibility = JavaVersion.VERSION_1_8
        versionBuildTool = '27.0.3'
        materialVersion = '1.3.0'
        constraintlayoutVersion = '2.0.4'
    }

Usage

Package Sidebar

Install

npm i react-native-uvc-camera-android

Weekly Downloads

0

Version

0.1.13

License

MIT

Unpacked Size

72.9 kB

Total Files

38

Last publish

Collaborators

  • stharzun