Commit f170866
authored
feat: enable camera for video extenstion and microphone for recording (#1493)
Noticed that the video extension and the sound recording need an
attribute adding on the scratch iframe.
Without this you get violations in the console for the camera - or the
microphone can not connect
<img width="953" height="567" alt="camera-violation"
src="https://github.com/user-attachments/assets/a9fd5dab-ae92-4b42-a985-efc0a91b019a"
/>
<img width="1475" height="761" alt="microphone-not-work"
src="https://github.com/user-attachments/assets/5dabb389-3b2f-4535-b94f-23b59c41fc4b"
/>
Simple fix here should get it working, so the user should be accessed
for permission to connect liek in the following images.
<img width="1317" height="973" alt="video-set-up"
src="https://github.com/user-attachments/assets/07d51ac9-522b-4f5a-bac4-fcb3bf483948"
/>
<img width="1151" height="893" alt="microphone-set-up"
src="https://github.com/user-attachments/assets/e5448223-d945-4093-97ba-7af93449405e"
/>1 parent d763f69 commit f170866
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments