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

Starting FlashLight #10

Open
onlyway opened this issue Sep 17, 2015 · 4 comments
Open

Starting FlashLight #10

onlyway opened this issue Sep 17, 2015 · 4 comments

Comments

@onlyway
Copy link

onlyway commented Sep 17, 2015

Hi, I have problem to find where is initialisation of the camera in SDK. I need to start a flashlight and I can't figured out where to find it. I need camera variable to make it so.

@Rugvip
Copy link
Contributor

Rugvip commented Sep 18, 2015

This is very tricky to implement at the moment, as the camera object is hidden quite deep in the jni layer in the GStreamer plugin https://github.com/EricssonResearch/openwebrtc-gst-plugins/blob/e09bfa127e59cd76b2bb0571258aadcdcce966e6/sys/androidvideo/video-source/jni/android_video_capture_device.c#L2326

There might be some good way to expose the object, but nothing is implemented at the moment.

@superdump
Copy link

Might it be simpler to use existing Android APIs to control the flash rather than exposing it through all the layers?

@Rugvip
Copy link
Contributor

Rugvip commented Sep 18, 2015

Not possible, you need to have a reference to the camera object to be able to start the flashlight.
"Your application should only have one Camera object active at a time for a particular hardware camera."

@onlyway
Copy link
Author

onlyway commented Sep 18, 2015

Thanx for your answer, I think it's not worth it for know for me to go such deep to make it work. But thank you for information where to look it for :)

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

3 participants