[mirotalksfu] - add comments, fix typo
هذا الالتزام موجود في:
@@ -1,2 +0,0 @@
|
||||
# Recording...
|
||||
app/rec
|
||||
@@ -450,8 +450,7 @@ function startServer() {
|
||||
app.post(['/recSync'], (req, res) => {
|
||||
// Store recording...
|
||||
if (serverRecordingEnabled) {
|
||||
if (!fs.existsSync(dir.rec)) fs.mkdirSync(dir.rec, { recursive: true });
|
||||
|
||||
//
|
||||
const { fileName } = req.query;
|
||||
|
||||
if (!fileName) {
|
||||
@@ -459,6 +458,9 @@ function startServer() {
|
||||
}
|
||||
|
||||
try {
|
||||
if (!fs.existsSync(dir.rec)) {
|
||||
fs.mkdirSync(dir.rec, { recursive: true });
|
||||
}
|
||||
const filePath = dir.rec + fileName;
|
||||
const writeStream = fs.createWriteStream(filePath, { flags: 'a' });
|
||||
|
||||
|
||||
@@ -35,7 +35,11 @@ module.exports = {
|
||||
cert: '../ssl/cert.pem',
|
||||
key: '../ssl/key.pem',
|
||||
},
|
||||
// The recording will be saved to the directory designated within your Server app/<dir>
|
||||
/*
|
||||
The recording will be saved to the directory designated within your Server app/<dir>
|
||||
Note: if you use Docker: Create the "app/rec" directory, configure it as a volume in docker-compose.yml,
|
||||
ensure proper permissions, and start the Docker container.
|
||||
*/
|
||||
recording: {
|
||||
dir: 'rec',
|
||||
enabled: false,
|
||||
|
||||
@@ -11,6 +11,8 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./app/src/config.js:/src/app/src/config.js:ro
|
||||
# These volume is mandatory if server.recording.enabled in the app/src/config.js
|
||||
# - ./app/rec:/src/app/rec
|
||||
# These volumes are not mandatory, comment if you want to use it
|
||||
# - ./app/:/src/app/:ro
|
||||
# - ./public/:/src/public/:ro
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم