Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The functions to configure the room connection and local medai media access are moved to config.js module. The configiguration configuration file example follows:

Code Block
languagejs
themeRDark
titleconfig.json
{
  "room": {
    "url": "ws://127.0.0.1:8080",
    "name": "ROOM1",
    "pin": "1234",
    "nickName": "User1"
  },
  "media": {
    "audio": {
      "tracks": [{
        "source": "mic",
        "channels": 2
      }]
    },
    "video": {
      "tracks": [
        {
          "source": "camera",
          "width": 1280,
          "height": 720,
          "codec": "H264",
          "constraints": {
            "frameRate": 25
          },
          "encodings": [
            { "rid": "720p", "active": true, "maxBitrate": 900000 },
            { "rid": "360p", "active": true, "maxBitrate": 500000, "scaleResolutionDownBy": 2 },
            { "rid": "180p", "active": true, "maxBitrate": 200000, "scaleResolutionDownBy": 4 }
          ]
        }        
      ]
    }
  }
}

...