最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android cameraX API not support 1:1 ratio record size - Stack Overflow

programmeradmin1浏览0评论

There are no api in Android cameraX API support 1:1 ratio for video size.There code below can not support this.

androidx.camera.video.recorder
Recorder.Builder().setAspectRatio()

Furthermore,I found the following api.

androidx.camera.video.VideoCapture
@RestrictTo(Scope.LIBRARY_GROUP)
@Override
public @NonNull Builder<T> setTargetAspectRatio(@AspectRatio.Ratio int aspectRatio) {
    throw new UnsupportedOperationException("setTargetAspectRatio is not supported.");
}

But this cannot be used. I just want to implement 1:1 ratio for video size via Android cameraX API.Can you do me a favor?

发布评论

评论列表(0)

  1. 暂无评论