diff options
| -rw-r--r-- | config.json | 4 | ||||
| -rw-r--r-- | export.js | 5 | ||||
| -rw-r--r-- | liveJoin.js | 5 | ||||
| -rw-r--r-- | liveRTMP.js | 5 | ||||
| -rw-r--r-- | package.json | 4 |
5 files changed, 16 insertions, 7 deletions
diff --git a/config.json b/config.json index 01ffcee..e63a75e 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { - "rtmpUrl": "rtmp://a.rtmp.youtube.com/live2/MyKey", + "rtmpUrl": "rtmp://127.0.0.1/live/sallar", "ffmpegServer": "ws://localhost", "ffmpegServerPort": 4000, "auth": "mZFZN4yc" -} +}
\ No newline at end of file @@ -4,7 +4,10 @@ var exec = require('child_process').exec; const fs = require('fs'); const homedir = require('os').homedir(); -var xvfb = new Xvfb({silent: true}); +var xvfb = new Xvfb({ + silent: true, + xvfb_args: ["-screen", "0", "1280x800x24", "-ac", "-nolisten", "tcp", "-dpi", "96", "+extension", "RANDR"] +}); var width = 1280; var height = 720; var options = { diff --git a/liveJoin.js b/liveJoin.js index d999980..eaf241e 100644 --- a/liveJoin.js +++ b/liveJoin.js @@ -4,7 +4,10 @@ var exec = require('child_process').exec; const fs = require('fs'); const homedir = require('os').homedir(); -var xvfb = new Xvfb({silent: true}); +var xvfb = new Xvfb({ + silent: true, + xvfb_args: ["-screen", "0", "1280x800x24", "-ac", "-nolisten", "tcp", "-dpi", "96", "+extension", "RANDR"] +}); var width = 1280; var height = 720; var options = { diff --git a/liveRTMP.js b/liveRTMP.js index dc1da7c..4e35857 100644 --- a/liveRTMP.js +++ b/liveRTMP.js @@ -7,7 +7,10 @@ const homedir = require('os').homedir(); const ffmpegServer = config.ffmpegServer + ":" + config.ffmpegServerPort + "/auth/" + config.auth; -var xvfb = new Xvfb({silent: true}); +var xvfb = new Xvfb({ + silent: true, + xvfb_args: ["-screen", "0", "1280x800x24", "-ac", "-nolisten", "tcp", "-dpi", "96", "+extension", "RANDR"] +}); var width = 1280; var height = 720; var options = { diff --git a/package.json b/package.json index 32de7e1..5355206 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "screencast" ], "dependencies": { - "puppeteer": "2.0.0", - "xvfb": "^0.2.3", + "puppeteer": "^2.1.1", + "xvfb": "^0.3.0", "ws": "^7.2.3" } } |
