Android camera2 API video app - Part 14 capturing and saving videos
Описание
*** Note for those of you having issues on none nexus devices such as Samsung Note 4 & Samsung 5 phone check out this playlist https://www.youtube.com/playlist?list=PL9jCwTXYWjDJmH3hVAGODP0oN5VEiKC_Y . Which will help to diagnose and fix problems ***
Part 14 shows how to setup a video capture request session for taking and saving videos.
Check the accompanying website tutorial here- https://www.nigeapptuts.com/?p=709
Github details:
You can get it from here
https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-capture
or you can run this command
git clone https://github.com/mobapptuts/android_camera2_api_video_app.git --branch camera2-video-capture
In this tutorial we will cover:
- Creating a surface for the media recorder
- Creating a capture request builder for video recording
- Adding the preview & recorder surfaces to the capture request builder
- Creating the capture request season
- Starting a repeating request session
- Starting & stopping the media recorder
API's covered
- MediaRecorder.getSurface
- CameraDevice.createCaptureRequest
- CameraDevice.TEMPLATE_RECORD
- PreviewBuilder.addTarget
- CameraDevice.createCaptureSession
- CameraCaptureSession.setRepeatingRequest
- MediaRecorder.start
- MediaRecorder.stop
- MediaRecorder.reset
For much more information checkout
Website - https://www.nigeapptuts.com
Twitter - https://twitter.com/MobAppTuts
Facebook - https://www.facebook.com/nigeapptuts
Google+ - https://plus.google.com/b/115884642086760882044
Pinterest - https://www.pinterest.com/mobapptuts/
The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.
Android studio (1.5) is the editor of choice (IDE) for this tutorial series.
This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Рекомендуемые видео



















