Skip to content
Lawrence edited this page Apr 28, 2018 · 15 revisions

Welcome to the MediaSample wiki!

this library provide activity for camera processing, if the api>=21, using the camera2 api;
if the api<21, using the camera1 api

1. preview

2. take picture or still capture

this is a picture from media sample

3. record video

long press for recording video

4. switch camera

if there are two facing cameras, there is a switch button that can toggle the camera.