mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 12:15:52 +03:00
[GH-ISSUE #57] Set webcam as camera (webcam0) #45
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zoutepopcorn on GitHub (Jan 3, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/57
It would be nice to connect a webcam (or fake stream) to the android device.
I thing it could be done by adding
to the /emulator/config.ini
It seems that docker under linux will provide /webcam/video0, and I was able to make an image with fswebcam. Now also the emulator flag looks good.
So when I edit the config.ini it was overwritten. My python skills are not so good, but I assume app.py is overwriting the config.ini.
Also I was wondering, howto keep your old emulator instead of starting a new one, when docker is rebooting..
@budtmo commented on GitHub (Jan 3, 2018):
Hi @zoutepopcorn ,
Could you explain it why do you need webcam like what is use case / test do you want to perform? because I think for some cases there is a workaround by storing the picture and use it in the test.
Regarding the question that you asked, starting new container will give you always new emulator. if you want to reuse that emulator, you don’t need to delete the old container. I hope it answers your question.
you can also join our group https://gitter.im/butomo1989/docker-android if you have other question in future.
@SrinivasanTarget commented on GitHub (Jan 3, 2018):
@butomo1989 Can you come online in Appium Slack?
@budtmo commented on GitHub (Sep 14, 2018):
How to use it can be found in this commit