I. Camera Practice Guide
1.1 turn on the camera
1.2 turn off the camera
1.3 open Preview
1.4 close Preview
1.5 taking photos
1.6 start video recording
1.7 end video recording
II. Camera2 Practice Guide
2.1 turn on the camera
2.2 turn off the camera
2.3 open Preview
2.4 close Preview
Posted on Mon, 08 Jun 2020 22:51:00 -0400 by gelwa
At the moment when I typed the title, I was a little excited. After all, the virtual camera has been working for several weeks, and it has successfully realized this function by bypassing many restrictions when android native system does not support it. In the next few days, I can finally get a good ...
Recently, the company made a project, which requires that four-way video can be displayed. It would be very troublesome to use layout package. Later, under the leadership of the God, I learned that recycling view can be used,
The specific requirements are as follows
The specific requirements are ...
Posted on Sat, 02 May 2020 03:56:34 -0400 by wdsmith
1. Generally, it is a switching mode. For example, when the system player switches the code stream, first Stop, then Create Player, then onPrepare, and then Start
2. In fact, there is also a seamless switching code stream. If it is a single instance player, click to switch the code stream without destroying the player, just paus ...
Posted on Fri, 24 Apr 2020 08:56:12 -0400 by ethosadvisory
Come from: http://blog.csdn.net/jianghuiquan/article/details/8569187
Android has two ways to take photos: one is to call the system's photo Intent directly, use onActivityResult to get picture resources or specify a picture path, and read the picture after the photo returns successfully; the other is to use Sur ...
Posted on Wed, 01 Apr 2020 15:23:34 -0400 by toxic_brain
Today, an android system is stuck when switching between horizontal and vertical screens. It can only turn around in about 3 seconds. Finally, it is pointed out that the function of the ScreenRotationAnimation class is called
Posted on Wed, 11 Mar 2020 03:30:01 -0400 by R0bb0b
Recently, I found that when I logged into the background management system, I found that the uploaded authentication video was too vague, so I found that I did not set the frame frequency for the MediaRecorder.
// Set the frame frequency to make the recorded video clearer
1. Tur ...
Posted on Mon, 03 Feb 2020 11:16:14 -0500 by cljones81
A simple requirement, the external shadow, the internal layout is transparent, and the camera is opened at the bottom (here only the layout code, click here with the camera).
Just call in Activity, set the height and width of the middle area.
private OcrFaceMaskSurfaceView surfacevie ...
Posted on Sun, 05 Jan 2020 11:00:14 -0500 by mpunn
Several process methods related to Camera class
camera.setDisplayOrientation(0) set camera horizontal direction
Mgamera.setpreviewdisplay (holder) displays the picture on the SurfaceHolder
mCamera.setPreviewCallback(callback) sets the callback to pass Yuv data to the onPreviewFrame method
Previewrate mparames = mmamer ...
Posted on Thu, 02 Jan 2020 04:31:30 -0500 by ayzee01