Testing
Like the rest of Chrome, there’s a focus on automated tests.
For manual development and testing, here are some command line flags that are useful for WebRTC-related testing:
-
--allow-file-access-from-files
allowsgetUserMedia()
to be called fromfile://
URLs. -
--disable-gesture-requirement-for-media-playback
removes the need to tap a<video>
element to start it playing on Android. -
--use-fake-ui-for-media-stream
avoids the need to grant camera/microphone permissions. -
--use-fake-device-for-media-stream
feeds a test pattern togetUserMedia()
instead of live camera input. -
--use-file-for-fake-video-capture=path/to/file.y4m
feeds a Y4M test file togetUserMedia()
instead of live camera input.