Skip to content

Instantly share code, notes, and snippets.

@DamonOehlman
Last active October 30, 2023 20:03
Show Gist options
  • Select an option

  • Save DamonOehlman/7329833 to your computer and use it in GitHub Desktop.

Select an option

Save DamonOehlman/7329833 to your computer and use it in GitHub Desktop.
General WebRTC tips and tricks collated over time

Chrome Flags

Fake Device Simulation

--use-fake-device-for-media-stream

Debug Logging

--enable-logging --v=1 --vmodule=*source*/talk/*=3

WebRTC Project Source Files of Interest

Constraints Available in Chrome

/talk/app/webrtc/mediaconstraintsinterface.h

Debugging in Firefox

Starting firefox with logging (for data channels and sctp in this case):

NSPR_LOG_MODULES=datachannel:5,sctp:5 /opt/browsers/firefox/stable/firefox http://localhost:9966/
@silviapfeiffer
Copy link

chrome_debug.log file is found in the User's Home directory under:
AppData/Local/Google/Chrome/

Note that this directory is not shown in the Windows file explorer, so got to it via cmd.com .
You can use NotePad to view it.

@cathylill
Copy link

For OSX:

alias chrome="rm -rf $HOME/.config/chrome-test && /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --console --no-first-run --user-data-dir=$HOME/.config/chrome-test --use-fake-device-for-media-stream --enable-logging --v=1 --vmodule=*third_party/libjingle/*=3,*=0"

@jfrux
Copy link

jfrux commented Jul 31, 2015

Anybody have a place to find decent test videos for streams. I like to be able to see different videos for each stream so I can tell if they are correctly placed for my app. I know I can convert them with ffmpeg but figured I'd see if anybody had any luck finding pre-formatted videos that just work good. I've seen the ones on archive.org but they aren't really modern or proper resolution and things. Would be nice to get some stock footage of users chatting to use for it.

@tonual
Copy link

tonual commented Nov 17, 2016

Chrome Flags
For "Use a raw video file rather than test media stream" it should be --use-file-for-fake-video-capture NOT --use-fake-ui-for-media-stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment