Hello Everyone,
We have built a website for video chat using media soup in Meteor JS. Also, we have created the docker image for the same, but if we are running it via docker, streaming does not work.
Please help.
Sharing the files,
- docker-compose. yml
version: '3'
services:
bitovn_bridge:
container_name: bitovn_bridge
image: docker-image:0.2
network_mode: "host"
environment:
ROOT_URL: ${ROOT_URL}
PORT: ${PORT}
MONGO_URL: ${MONGO_URL}
LISTEN_PORT: ${LISTEN_IP}
ANNOUNCED_IP: ${ANNOUNCED_IP}
LISTEN_IP: ${LISTEN_IP}
IP: ${IP}
DEBUG: ${DEBUG}
#ports:
# - "3000:3000"
restart: always
Env file
PORT= 3000
MONGO_URL= "mongodb://url"
LISTEN_PORT= 3000
DEBUG= "mediasoup*"
ROOT_URL="https://website.com"
ANNOUNCED_IP="13.127.246.48"
LISTEN_IP= "0.0.0.0"
IP= "0.0.0.0"
We are doubtful about what needs to be given in Announced IP & IP.
Also, config.js
mediasoup: {
// Worker settings
numWorkers: Object.keys(os.cpus()).length,
worker: {
rtcMinPort: 10000,
rtcMaxPort: 10100,
logLevel: "warn",
logTags: [
"info",
"ice",
"rtx",
"score",
"simulcast",
"svc",
],
},
router: {
mediaCodecs: [
{
kind: "audio",
mimeType: "audio/opus",
clockRate: 48000,
channels: 2,
},
{
clockRate: 90000,
mimeType: "video/VP8",
//scalabilityModes: ["L1T1", "L1T2", "L1T3"],
parameters: {
"x-google-start-bitrate": 1000,
},
},
],
},
// WebRtcTransport settings
webRtcTransport: {
listenIps: [
{
ip: process.env.IP,
announcedIp: process.env.ANNOUNCED_IP,
},
],
maxIncomingBitrate: 1500000,
initialAvailableOutgoingBitrate: 1000000,
// minimumAvailableOutgoingBitrate: 500000,
},
},
Let us know if anything else is required to debug the issue. Any help would be greatly appreciated.
Thanks