Hi all,
My Janus is not recording video.
For the record, I'm looking at this folder, but there are no files.
/opt/janus/share/janus/recordings
The room creation code and init function are as follows.
I wonder if there are any other settings related to recording. Or where am I doing wrong?
By the way i use token_auth = true in main janus conf file.
let createRoom = {
request: "create",
record: true, // video recording
publishers: 100, // max publishers
room:parseInt(roomId),
secret: "my-secret"
// "bitrate": parseInt(512)*1000,
};
handler.send({
"message": createRoom,
success: function(result) {
console.error(result);
}
});
function janusInit() {
Janus.init({debug: "all", callback: function() { // Use a button to start the demo
if (!Janus.isWebrtcSupported()) {
Toastnotify.create({
text: "No WebRTC support",
type: 'danger',
important: false
});
return;
}
janus = new Janus({ // Create session
server: server,
iceServers:iceServers,
token: janusToken,
destroyOnUnload: false, // should be false, we destroy sessions from with config session_timeout value
success: function() {
janusAttach(janus);
},
error: function(error) {
Janus.error(error);
Toastnotify.create({
text: error,
type: 'default',
important: false,
buttonOk: 'Ok',
callbackOk:() => {
window.location.reload();
}
});
},
destroyed: function() {
window.location.reload();
}
});
}});
}