Video Room -> Recording API is not working

Recording API is not working.

When I hit the recording start API then get successfully response from janus server.

Then I again hit the list room API and check that room so the recording property is not updating so can you please check this issue.

Please find attachment for your proofs.

I am using janus version

“version”: 1103,
“version_string”: “1.1.3”

image

You can find the second API response here.

1 Like

While I’m not experienced enough to answer this particular case, I can tell you that I have been using the demo recently, and recording works there.

Have you tried comparing both implementations?

Pkease don’t use screenshots to report issues: I just don’t look at them, especially when there’s text I’m supposed to look at. Share the messages/log snippets as code blocks instead. That said, check the Janus logs when you attempt to start recording: it may be a simple permission issue, for instance, something the logs would notify.

[transports/janus_http.c:janus_http_handler:1378] Got a HTTP POST request on /janus/4640095562520689/7047401247124542...
[transports/janus_http.c:janus_http_handler:1379]  ... Just parsing headers for now...
[transports/janus_http.c:janus_http_headers:2022] Content-Type: application/json
[transports/janus_http.c:janus_http_headers:2022] User-Agent: PostmanRuntime/7.32.3
[transports/janus_http.c:janus_http_headers:2022] Accept: */*
[transports/janus_http.c:janus_http_headers:2022] Postman-Token: 4c73e579-0510-4a12-bce7-810c77504327
[transports/janus_http.c:janus_http_headers:2022] Host: jvc.hops.healthcare:8089
[transports/janus_http.c:janus_http_headers:2022] Accept-Encoding: gzip, deflate, br
[transports/janus_http.c:janus_http_headers:2022] Connection: keep-alive
[transports/janus_http.c:janus_http_headers:2022] Content-Length: 267
[transports/janus_http.c:janus_http_handler:1417] Processing HTTP POST request on /janus/4640095562520689/7047401247124542...
[transports/janus_http.c:janus_http_handler:1481]  ... parsing request...
Session: 4640095562520689
Handle: 7047401247124542
Processing POST data (application/json) (267 bytes)...
[transports/janus_http.c:janus_http_handler:1506]   -- Data we have now (267 bytes)
[transports/janus_http.c:janus_http_handler:1417] Processing HTTP POST request on /janus/4640095562520689/7047401247124542...
[transports/janus_http.c:janus_http_handler:1481]  ... parsing request...
Session: 4640095562520689
Handle: 7047401247124542
Processing POST data (application/json) (0 bytes)...
[transports/janus_http.c:janus_http_handler:1511] Done getting payload, we can answer
{
    "janus": "message",
    "body": {
        "request": "edit",
        "room":609738503088230,
        "record":false

    },
    "transaction": "Zc0V36KBCKiV",
    "token":"1688469855,janus,janus.plugin.videoroom:Sc0RrnXv8o1KVPlN4POjHwXIBFk="
}
[transports/janus_http.c:janus_http_request_timeout_create:262] [0x7f08bc013680] create (10)
Forwarding request to the core (0x7f08bc00f6d0)
Got a Janus API request from janus.transport.http (0x7f08bc00dd90)
Transport task pool, serving request
[7047401247124542] There's a message for JANUS VideoRoom plugin
Attempt to edit the properties of an existing VideoRoom room
Creating plugin result...
Sending Janus API response to janus.transport.http (0x7f08bc00dd90)
Got a Janus API response to send (0x7f08bc00dd90)
[transports/janus_http.c:janus_http_request_timeout_finalize:241] [0x7f08bc013680] finalize
Destroying plugin result...
[transports/janus_http.c:janus_http_request_completed:2048] Request completed, freeing data

Hello @lorenzo we checked the log for recording request, we not found any error in log so can please suggest some another solution?

FYI
@kamlesh.prajapati

The edit command is not what you use as a recording API. Please read the docs more carefully.

@lorenzo Sorry, I am using wrong API to start/stop the recording.
The correct way to do this is

{
    "janus": "message",
    "body": {
        "request": "enable_recording",
        "room":609738503088230,
        "record":true
    }, 
    "transaction": "Zc0V36KBCKiV",
    "token":"1688469855,janus,janus.plugin.videoroom:Sc0RrnXv8o1KVPlN4POjHwXIBFk="
}

Thanks for your support @lorenzo .

FYI
@kamlesh.prajapati