Skip to content

shiyinghan/UVCAndroid

Repository files navigation

Maven Central

UVCAndroid

Library and sample to access UVC camera on non-rooted Android device

中文文档: UVCAndroid,安卓UVC相机通用开发库

How do I use it?

Setup

Dependencies
repositories {
  mavenCentral()
}

dependencies {
    implementation 'com.herohan:UVCAndroid:1.0.7'
}

R8 / ProGuard

If you are using R8 the shrinking and obfuscation rules are included automatically.

ProGuard users must manually add the below options.

-keep class com.herohan.uvcapp.** { *; }
-keep class com.serenegiant.usb.** { *; }
-keepclassmembers class * implements com.serenegiant.usb.IButtonCallback {*;}
-keepclassmembers class * implements com.serenegiant.usb.IFrameCallback {*;}
-keepclassmembers class * implements com.serenegiant.usb.IStatusCallback {*;}

Requirements

Android 5.0+