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.

Revisions

  1. DamonOehlman revised this gist Aug 6, 2021. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,10 @@ This information source from the following url:

    http://peter.sh/experiments/chromium-command-line-switches/

    And also in the chromium source:

    https://source.chromium.org/chromium/chromium/src/+/main:media/base/media_switches.cc

    ### Simulate Capture with a Fake Stream (test video and audio signal)

    ```
  2. DamonOehlman revised this gist Mar 28, 2014. 1 changed file with 22 additions and 1 deletion.
    23 changes: 22 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,32 @@
    ## Chrome Flags

    ### Fake Device Simulation
    This information source from the following url:

    http://peter.sh/experiments/chromium-command-line-switches/

    ### Simulate Capture with a Fake Stream (test video and audio signal)

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

    ### Suppress the Permission Dialog

    ```
    --use-fake-ui-for-media-stream
    ```

    ### Use a raw video file rather than test media stream

    ```
    --use-fake-ui-for-media-stream
    ```

    See my bash alias for an example...

    __NOTE:__ No audio as far as I can tell.


    ### Debug Logging

    ```
  3. Damon Oehlman revised this gist Feb 2, 2014. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,13 @@
    --enable-logging --v=1 --vmodule=*source*/talk/*=3
    ```

    ### Bash Alias

    ```sh
    # initialise the chrome alias
    alias chrome="rm -rf $HOME/.config/chrome-test && google-chrome --console --no-first-run --user-data-dir=$HOME/.config/chrome-test --use-fake-device-for-media-stream --use-file-for-fake-video-capture=/home/doehlman/testvideo.y4m --enable-logging --v=1 --vmodule=*third_party/libjingle/*=3,*=0"
    ```

    ## WebRTC Project Source Files of Interest

    ### Constraints Available in Chrome
  4. DamonOehlman revised this gist Dec 10, 2013. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,12 @@

    ```
    /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/
    ```
  5. DamonOehlman revised this gist Nov 19, 2013. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,12 @@

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

    ## WebRTC Project Source Files of Interest

    ### Constraints Available in Chrome

    ```
    /talk/app/webrtc/mediaconstraintsinterface.h
    ```
  6. DamonOehlman created this gist Nov 6, 2013.
    13 changes: 13 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ## Chrome Flags

    ### Fake Device Simulation

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

    ### Debug Logging

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