pixel-streaming webrtc path updated to relative, webrtc test added
This commit is contained in:
+9
-1
@@ -1,4 +1,5 @@
|
||||
var config = require('../config')
|
||||
const config = require('../config')
|
||||
const fs = require('fs')
|
||||
|
||||
const not_valid = (message) => {
|
||||
console.error('not valid (config.js): ', message)
|
||||
@@ -57,6 +58,13 @@ const test_config = () => {
|
||||
config_pass = false
|
||||
}
|
||||
|
||||
if (config.webrtc_server_path) {
|
||||
if (!fs.existsSync(config.webrtc_server_path)) {
|
||||
not_valid('wbertc_server_path exists in config BUT not in the filesystem (file not exists)')
|
||||
config_pass = false
|
||||
}
|
||||
}
|
||||
|
||||
if (!config.app_args) {
|
||||
not_valid('webrtc_server_path')
|
||||
config_pass = false
|
||||
|
||||
Reference in New Issue
Block a user