zduny
zduny

Reputation: 2541

Android - How to record video without preview?

I'm writing an app which uses multiple layouts. How to record video in background without having visible SurfaceView and despite changing layouts (with setContentView())?

Upvotes: 2

Views: 5909

Answers (1)

lopisan
lopisan

Reputation: 7830

You can use SurfaceView of size 1x1 pixels, it should work on most devices.

See this question for more answers.

Upvotes: 3

Related Questions