Skip to content
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

Capture the camera #409

Closed
haampie opened this issue Jan 24, 2019 · 5 comments
Closed

Capture the camera #409

haampie opened this issue Jan 24, 2019 · 5 comments

Comments

@haampie
Copy link

haampie commented Jan 24, 2019

Since #232 was closed, let me open an issue here.

In an application with a smart glass I'm looking for a way to have both the camera and ui displayed on another screen. What is required to get that working? (Not an android expert)

@rom1v rom1v added the camera label Jan 24, 2019
@cactysman
Copy link

Without knowing too much about how the scrcpy server works inside Android, I'd believe it would require a helper app that needs to be given access to the camera by the user.

@rom1v
Copy link
Collaborator

rom1v commented Jan 24, 2019

I'd believe it would require a helper app that needs to be given access to the camera by the user.

I think we can get access directly from the scrcpy server "app".

Probably by using android.hardware.camera2 and write to the input surface provided by the codec.

@haampie
Copy link
Author

haampie commented Jan 24, 2019

Yes, exactly, that was my thinking as well after some Googling. But unfortunately I'm not sure how to set it all up (yet).

@haampie
Copy link
Author

haampie commented Jan 24, 2019

Maybe it does not make sense to use scrcpy at all for this task.

A simpler solution is to use an existing rstp streaming app over wifi.

Thanks for the project tho! Very helpful, also when accessing a device that has a poor UI like smart glasses.

@rom1v
Copy link
Collaborator

rom1v commented Apr 9, 2020

Maybe it does not make sense to use scrcpy at all for this task.

An option to mirror the camera instead of the device would be great!

Closing as duplicate of #241.

@rom1v rom1v closed this as completed Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants