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-filesallowsgetUserMedia()to be called fromfile://URLs. -
--disable-gesture-requirement-for-media-playbackremoves the need to tap a<video>element to start it playing on Android. -
--use-fake-ui-for-media-streamavoids the need to grant camera/microphone permissions. -
--use-fake-device-for-media-streamfeeds a test pattern togetUserMedia()instead of live camera input. -
--use-file-for-fake-video-capture=path/to/file.y4mfeeds a Y4M test file togetUserMedia()instead of live camera input.