@@ -258,40 +258,3 @@ Use **Linux** for mock video injection tests that require visual verification or
258258| Wrong resolution | Use a file resolution that matches your app expectations; ` 640x360 ` is a safe default |
259259| Windows path errors | Use escaped backslashes: ` C:\\Users\\ltuser\\Downloads\\sample_640x360.mjpeg ` |
260260| macOS video does not render | This is a known Chrome limitation; use Linux when visual verification is required |
261-
262- ## Creating an ` .mjpeg ` Test File
263-
264- If you do not already have an ` .mjpeg ` file, generate one with ` ffmpeg ` :
265-
266- ``` bash
267- # Convert MP4 to MJPEG (640x360, 30fps, 10 seconds)
268- ffmpeg -i input.mp4 -vf scale=640:360 -r 30 -t 10 -f mjpeg sample_640x360.mjpeg
269-
270- # Generate a synthetic color bars video
271- ffmpeg -f lavfi -i " smptebars=duration=10:size=640x360:rate=30" -f mjpeg sample_640x360.mjpeg
272- ```
273-
274- ## Quick Validation Checklist
275-
276- - [ ] ` .mjpeg ` file uploaded using ` /automation/api/v1/user-files `
277- - [ ] ` lambda:userFiles ` includes the exact uploaded file name
278- - [ ] ` --use-fake-device-for-media-stream ` is set
279- - [ ] ` --use-fake-ui-for-media-stream ` is set
280- - [ ] ` --use-file-for-fake-video-capture ` points to the correct OS path
281- - [ ] The test navigates to a page that calls ` getUserMedia() `
282- - [ ] The video element is confirmed as playing (` readyState >= 2 ` ) on Linux
283-
284- ## Validation Notes
285-
286- This workflow was validated on:
287-
288- - ** Linux (Ubuntu 20) + Chrome 145** : visual rendering and API-level validation both passed
289- - ** macOS (Sequoia) + Chrome 145** : API-level validation passed, but visual rendering did not
290-
291- Use Linux when your test needs visible camera frames inside the page or canvas pipeline.
292-
293- ## Target Audience
294-
295- 1 . Developers building WebRTC or video features
296- 2 . QA engineers testing camera-based workflows
297- 3 . Customer support teams guiding customers through video injection setup
0 commit comments