Janus is not recording video.

112 views
Skip to first unread message

Ersin Güvenç

unread,
Sep 1, 2021, 10:44:26 AM9/1/21
to meetecho-janus
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();
            }
        });
    }});    
}



Ersin Güvenç

unread,
Sep 1, 2021, 1:52:05 PM9/1/21
to meetecho-janus
i fixed it with rec_dir  option  thanks. 

 let createRoom = {
        request: "create",
        record: true,  // video recording 
        publishers: 100,  // max publishers
        room:parseInt(roomId),
        secret: "my-secret",
        rec_dir: "/my/path"
    };

--
You received this message because you are subscribed to a topic in the Google Groups "meetecho-janus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meetecho-janus/JpcC7xjdluw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/eb634290-1a96-4358-9e06-b8ad8bd68ba3n%40googlegroups.com.


--
Ersin Güvenç

Reply all
Reply to author
Forward
0 new messages