diff options
| author | Jibon Costa <jiboncosta57@gmail.com> | 2020-03-29 22:00:01 +0600 |
|---|---|---|
| committer | Jibon Costa <jiboncosta57@gmail.com> | 2020-03-29 22:00:01 +0600 |
| commit | 753e98125ba93504c72effa6a74e92851a48787b (patch) | |
| tree | a7056c357c6cd702bef538f4fdc8efdb935c835f /liveRTMP.js | |
| parent | 55850d77277a336523530b8c14692faa275c8544 (diff) | |
| download | bbb-recorder-753e98125ba93504c72effa6a74e92851a48787b.tar.gz bbb-recorder-753e98125ba93504c72effa6a74e92851a48787b.zip | |
separate config file added
Diffstat (limited to 'liveRTMP.js')
| -rw-r--r-- | liveRTMP.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/liveRTMP.js b/liveRTMP.js index 0fcbfef..dc1da7c 100644 --- a/liveRTMP.js +++ b/liveRTMP.js @@ -2,8 +2,10 @@ const puppeteer = require('puppeteer'); const Xvfb = require('xvfb'); var exec = require('child_process').exec; const fs = require('fs'); +var config = JSON.parse(fs.readFileSync("config.json", 'utf8')); const homedir = require('os').homedir(); -const ffmpegServer = "ws://localhost:4000/auth/mZFZN4yc"; + +const ffmpegServer = config.ffmpegServer + ":" + config.ffmpegServerPort + "/auth/" + config.auth; var xvfb = new Xvfb({silent: true}); var width = 1280; |
