Skip to content

Commit a9b29d9

Browse files
committed
use fake webcam as emulator from camera
1 parent b0c8370 commit a9b29d9

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/bobtests_linux.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,27 @@ jobs:
7676
du -hs /home/runner/work
7777
cd /home/runner/work
7878
du -s *|sort -n
79+
80+
- name: install deps for fake webcam
81+
run: |
82+
sudo apt-get install v4l2loopback-utils ffmpeg
83+
sudo apt-get install linux-modules-extra-$(uname -r)
84+
85+
- name: start fake webcam
86+
run: |
87+
pwd
88+
git clone https://github.com/whokilleddb/Fake-Stream
89+
cd Fake-Stream/
90+
ls -al
91+
pwd
92+
sudo modprobe v4l2loopback card_label="My Fake Webcam" video_nr=10 devices=1 exclusive_caps=1
93+
sleep 2
94+
ls -al /dev/video*
95+
sudo ffmpeg -stream_loop -1 -re -i ./test.mp4 -vcodec rawvideo -threads 0 -f v4l2 /dev/video10 &
96+
sleep 10
97+
sudo chmod a+rw /dev/video*
98+
ls -al /dev/video*
99+
79100
- name: android test
80101
timeout-minutes: 40
81102
continue-on-error: true
@@ -87,7 +108,7 @@ jobs:
87108
ndk: 21.0.6113669
88109
cmake: 3.10.2.4988404
89110
force-avd-creation: false
90-
emulator-options: -no-snapshot-save -skin 1080x2220 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back virtualscene -camera-front emulated
111+
emulator-options: -no-snapshot-save -skin 1080x2220 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back virtualscene -camera-front webcam0
91112
disable-animations: true
92113
disable-spellchecker: true
93114
pre-emulator-launch-script: |

0 commit comments

Comments
 (0)