Hi Matteo,
You need send custom data to openvidu-components-angular when the recording starts, updates and stops.
While OpenVidu 2.X obtained this data automatically, OpenVidu 3.X needs to receive the data from the backend for the time being.
The way to send this data to the frontend is by using the sendData method of the RoomServiceClient object. This method allows you to send custom data to participants in the room.
As you are using the PHP SKD, here I post some examples of how to use the sendData method in PHP:
// Send data to all participants
$response = $svc->sendData('room-name', 'Hello everyone!', 1); // kind: 1 = reliable, 0 = lossy
// Send data to specific participants
$destinationIdentities = ['participant-1', 'participant-2'];
$response = $svc->sendData('room-name', 'Private message', 1, $destinationIdentities);
// Send data with a topic
$response = $svc->sendData('room-name', 'Chat message', 1, [], 'chat-topic');
So you will need to send the recording status when a webhook event (egress_started, egress_updated, egress_ended) is received.
You can check the OpenVidu Call backend for an example of how to send this data to the frontend.
The frontend is waiting to receive a message with the recording related topic and the related recording payload