googlecreativelab / shadercam

Simple OpenGL Shaders with the camera2 apis in Android 5.0+
http://www.androidexperiments.com
Other
241 stars 66 forks source link

Support api level < 21? #10

Closed jaychang0917 closed 7 years ago

jaychang0917 commented 7 years ago

Hi, will this library support api level less than 21?

trippedout commented 7 years ago

nope - this library is based off the camera2 apis, introduced first in api 21 and the standard for camera work in android since then.

altho it should be trivial to implement the renderer for the old camera apis, as they both used surfaces for rendering their content.

jaychang0917 commented 7 years ago

But MediaRecorder seems only support recording surface on api 21+, do you have any alternative solution?

trippedout commented 7 years ago

a quick google shows a few options, im sure there are plenty more

https://github.com/orangesignal/orangesignal-android-camera https://github.com/yulu/ShaderCam http://nhenze.net/?p=172

jaychang0917 commented 7 years ago

Your links seems not related to recording a surface.

trippedout commented 7 years ago

ah - i think the only way to do this pre api 21 is with native code. media recorder only took a source variable, camera or otherwise, before allowing an arbitrary surface.

you're hitting 60+% of devices with api 21 nowadays tho, but sorry i dont have any more info for you

jaychang0917 commented 7 years ago

thanks your information!