Skip to content

No TextureView support #15

Closed
Closed
@bryanstern

Description

@bryanstern

The CameraSource class currently only supports sending preview frames to a SurfaceView.
https://developers.google.com/android/reference/com/google/android/gms/vision/CameraSource.html#start(android.view.SurfaceHolder)

It would be great if it also supported TextureView in the same way as this View is much more flexible. The decompiled CameraSource suggests this should be possible as calling CameraSource#start without a SurfaceView will actually send the preview frames to an unused SurfaceTexture.

Working around this with reflection (grabbing the camera, stopping the preview, adding a TextureView, and restarting) is really slow because starting the preview is slow and now happens 2x.

Please let me know if there is a better place to provide this feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions