Hello,
I have a working OpenVidu installation that is using MediaSoup backend (enterprise license).
All my attempts to stream IP cameras fail with an error.
Steps to reproduce:
-
Use a test RTSP stream that works e.g. with VLC player:
rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 -
Start a session and check session ID via Inspector. Say, “ses_KJnhexEjw3”
-
Use curl to add RTSP stream to this session, following the example in OpenVidu API documentation.
Run in terminal:
> curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic MY_SECRET" --data '{"type":"IPCAM","data":"BigBugBunny","record":true,"rtspUri":"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4","adaptativeBitrate": true,"onlyPlayWithSubscribers":true,"networkCache":2000}' https://MY_SERVER/openvidu/api/sessions/ses_KJnhexEjw3/connection
Response from the server:
{“timestamp”:1645013880705,“status”:500,“error”:“Internal Server Error”,“message”:“Unable to create publisher endpoint. Code: 303”,“path”:"/openvidu/api/sessions/ses_KJnhexEjw3/connection"}
-
Observe that new client appears to Inspector and also to OpenVidu session UI among other pariticipants. But without video stream.
-
Check OpenVidu server logs:
openvidu-server_1 | [INFO] 2022-02-16 12:18:00,652 [http-nio-0.0.0.0-5443-exec-7] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions/ses_KJnhexEjw3/connection {type=IPCAM, data=BigBugBunny, record=true, rtspUri=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4, adaptativeBitrate=true, onlyPlayWithSubscribers=true, networkCache=2000}
openvidu-server_1 | [INFO] 2022-02-16 12:18:00,678 [http-nio-0.0.0.0-5443-exec-7] io.openvidu.server.coturn.CoturnCredentialsService - Creating COTURN user
openvidu-server_1 | [INFO] 2022-02-16 12:18:00,697 [http-nio-0.0.0.0-5443-exec-7] io.openvidu.server.coturn.CoturnCredentialsService - COTURN user created: true
openvidu-server_1 | [INFO] 2022-02-16 12:18:00,697 [http-nio-0.0.0.0-5443-exec-7] io.openvidu.server.kurento.core.KurentoSession - SESSION ses_KJnhexEjw3: Added participant [participantPrivateId=ipc_IPCAM_rtsp_NDKU_wowzaec2demo_streamlock_net_vod_mp4_BigBuckBunny_115k_mp4, participantPublicId=ipc_IPCAM_rtsp_NDKU_wowzaec2demo_streamlock_net_vod_mp4_BigBuckBunny_115k_mp4, streaming=false]
openvidu-server_1 | [ERROR] 2022-02-16 12:18:00,704 [AbstractJsonRpcClientWebSocket-reqResEventExec-e219-t2628] io.openvidu.server.kurento.endpoint.PublisherEndpoint - EP str_IPC_QQSm_ipc_IPCAM_rtsp_NDKU_wowzaec2demo_streamlock_net_vod_mp4_BigBuckBunny_115k_mp4: Failed to create a new PlayerEndpoint
openvidu-server_1 | org.kurento.jsonrpc.JsonRpcErrorException: Error on 'create': [PlayerEndpoint.create] (PlayerEndpoint_30f41080-d463-453a-b46e-be9fbf5c6547) Method not implemented -- PlayerEndpoint is not yet available for use. Code: -1. Data: null
-
Does this mean that streaming IP cameras is supported only with Kurento backend?
-
If so, do you have plans to implement IP camera support with MediaSoup backend?
-
If so, can you give even a rough estimate when this feature could be added, such as Q2/2022?
Thanks!