# Unable to use Video Library in Android

**URL:** <https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277>\
**Category:** Processing for Android\
**Created:** [December 23, 2022, 3:55pm UTC](https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277 "2022-12-23T15:55:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![javamind](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javamind/32/13662_2.png) [@javamind](https://discourse.processing.org/u/javamind)\
**Post date:** [December 23, 2022, 3:55pm UTC](https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277/1 "2022-12-23T15:55:47Z")

</div>

I cannot build any video library examples for Processing in Android mode.  
Is there a separate video library for Android available?

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [December 23, 2022, 5:25pm UTC](https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277/2 "2022-12-23T17:25:05Z")

</div>

Hi

Informations and reference

> [@Native camera android in processing android](https://discourse.processing.org/t/native-camera-android-in-processing-android/26858/34):
>
> i am using a plain sketch not even showing preview image. import ketai.camera.\*; KetaiCamera cam; int time; void setup() { orientation(LANDSCAPE); imageMode(CENTER); cam = new KetaiCamera(this, 176, 144, 30); time = millis(); } void draw() { //image(cam, width/2, height/2); } void onCameraPreviewEvent() { println(millis()-time); time=millis(); cam.read(); } // start/stop camera preview by tapping the screen void mousePressed() { if (cam.isStarted()) { cam.stop(); }…

---

<div class="post-metadata">

**Author:** ![javamind](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javamind/32/13662_2.png) [@javamind](https://discourse.processing.org/u/javamind)\
**Post date:** [December 24, 2022, 3:04pm UTC](https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277/3 "2022-12-24T15:04:02Z")

</div>

thanks jafal,  
Acutally I need a UVC (webcam) library for Android, not Ketai. The standard processing video library for java (Windows) works well for this need, but is not implemented for Android. Also bugs with video library prevent use with P2D and P3D forcing downgrade to JAVA2D a much slower implementation.

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 14, 2023, 7:16am UTC](https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277/4 "2023-05-14T07:16:22Z")

</div>

experiencing same issue.

here is the error

```auto
Exception in thread "Thread-91" java.lang.NullPointerException: Cannot read the array length because "list" is null
	at processing.app.Library.wrapFiles(Library.java:427)
	at processing.app.Library.getApplicationExports(Library.java:437)
	at processing.mode.android.AndroidBuild.copyImportedLibs(AndroidBuild.java:839)
	at processing.mode.android.AndroidBuild.createAppModule(AndroidBuild.java:476)
	at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:263)
	at processing.mode.android.AndroidBuild.build(AndroidBuild.java:224)
	at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:294)
	at processing.mode.android.AndroidEditor$17.run(AndroidEditor.java:421)

```

---

<div class="post-metadata">

**Author:** ![SantosCuccia](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@SantosCuccia](https://discourse.processing.org/u/SantosCuccia)\
**Post date:** [July 3, 2023, 7:07am UTC](https://discourse.processing.org/t/unable-to-use-video-library-in-android/40277/5 "2023-07-03T07:07:38Z")

</div>

Don’t have a separate Android video library?
