duanhong169 / Camera

📸 Use Android camera to take pictures and videos, based on `camera2` api.
Apache License 2.0
131 stars 45 forks source link

Pause video record #4

Closed Vibinreji closed 6 years ago

Vibinreji commented 6 years ago

Is there any option available to pause the video record and restart it?

duanhong169 commented 6 years ago

Yes, but only support these actions when API level >= 24 (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N):

https://github.com/duanhong169/Camera/blob/6077681d059eb5f8f01ffbf373ebc35ed01e3def/camera/src/main/java/top/defaults/camera/Photographer.java#L60-L68