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

External USB Camera #8

Open
shree-ram opened this issue Sep 16, 2015 · 5 comments
Open

External USB Camera #8

shree-ram opened this issue Sep 16, 2015 · 5 comments

Comments

@shree-ram
Copy link

I am able to get video stream from UVC camera connected to Android device on SurfaceView, want to stream this video via OpenwebRTC, please can you guide me.

@onlyway
Copy link

onlyway commented Sep 17, 2015

What you get when you try CameraSource.getInstance().getCount(); ? The number of sourcec changes when you attach external camera? If yes, only thing you have to do is to pick source like this: CameraSource.getInstance().selectSource(number_of_source);

@shree-ram
Copy link
Author

Thanks for your reply.
Nopes, it does not detect as native camera, so the getCount does not change

@onlyway
Copy link

onlyway commented Sep 18, 2015

Do we have to find place of camera initialization. I need it to to use flash. Have you seen it anywhere? CameraSource isn't right place

@shree-ram
Copy link
Author

Camera filr
Camera cam = Camera.open();
Parameters p = cam.getParameters();
p.setFlashMode(Parameters.FLASH_MODE_TORCH);
cam.setParameters(p);
cam.startPreview();

@onlyway
Copy link

onlyway commented Sep 18, 2015

I know how to do that, but I can't find class where there is camera initialization. You can't use camera when it is busy. I'm the same place you will be able to change source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants