-
-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thoughts for v2 #113
Comments
Any timeline for supporting Camera2? Thanks. |
I see no urgency for that, so it will come after v2 unless someone works on it. |
I am using this library for media capture in a application which has encrypted media gallery and encrypts picture on saving it to the file. It would be perfect if possible to get video "stream" directly from your library so we can encrypt it before it gets saved in the file. Is it possible to have |
Hey, I noticed that you are adding the label For my usecase, I have to set the Will v2 contain more public APIs to set the values? |
Thanks! No, I think we want to keep getting the orientation hint from the device and offer no API. |
I would say that
v1.4.X
is a very stable release, and there's just minor refinements to do.Major changes would require API signature changes as well so I am starting thinking about a
v2
release based on feedback and requests. This is how I see it.Audio
enumON
andOFF
but rather audio options to be passed to the video recorders.onPictureTaken(byte[])
onPictureTaken(PictureResult)
onVideoTaken(File)
onVideoTaken(VideoResult)
PictureResult
isSnapshot()
,getTimestamp()
,getLocation()
,getOrientation()
,getSize()
,getJpeg()
,toBitmap(maxWidth, maxHeight, callback)
.VideoResult
isSnapshot()
,getTimestamp()
,getLocation()
,getOrientation()
,getSize()
,getFile()
.setJpegQuality
setCropOutput
getPreviewSize
getSnapshotSize
getPreviewSize
getVideoSize
takeVideo
.capturePicture
takePicture
. Never crop the output, use the internal picture sizes.captureSnapshot
takePictureSnapshot
. Takes picture from preview frames. Always crop the output to the visible part. Cropping is already native inYuvImage
, but rotating is not. We need either a native jpeg rotator, or (better) a library that writes EXIF orientation tags to jpeg buffers.startCapturingVideo
takeVideo
.stopCapturingVideo
stopVideo
.takeVideoSnapshot
takePictureSnapshot
. It should take videos by collecting preview frames, and crop them to the visible part. So if preview is 1:1, we get 1:1 videos. Then mix with audio. This will be API18 min, see the grafika example.take*
APIs in short:takePicture
,takeVideo
,takePictureSnapshot
andtakeVideoSnapshot
. The snapshot version will implicitly crop the output to the visible part, and will be lower quality of course.VideoRecorder
VideoRecorder
class. One implementation will containMediaRecorder
stuff that is already working well. The other should containMediaCodec
stuff to create videos from frames. Of course,takeVideo
uses the first whiletakeVideoSnapshot
uses the second.Gesture.DOUBLE_TAP
Feel free to discuss. No hurry, I expect this in the middle of 2018.
The text was updated successfully, but these errors were encountered: