Struggling with recording OpenVidu 3.1.0

Hi Carlos,

Regarding the timer tag, as you can see, we have tried implementing it but haven’t achieved positive results yet.

It’s possible that the method we’re using to send the signal only works for remote participants and not for the local participant.
I’m sharing the method here so you can take a look and help us identify any issues:

sendSignalToRemoteParticipants(signaData: any, topic: string, destinationIdentities: string[] = []): void
{
        console.log('sendSignalToRemoteParticipants(', signaData, topic, destinationIdentities, ')');

        const strData = JSON.stringify({ data: signaData });
        const data: Uint8Array = new TextEncoder().encode(strData);
        const options: DataPublishOptions = { reliable: true, destinationIdentities: destinationIdentities, topic: topic };

        this.participantService.publishData(data, options);
}

We are also using this event handler but it accepts only RemoteParticipants or undefined as the participant? parameter.

room.on(RoomEvent.DataReceived, (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacket_Kind, topic?: string)

If you could suggest a better method or alternative implementation, it would be very appreciated.

Best regards,
Matteo

I believe you’re trying to send data from the client side, whereas I suggested doing it on the server side

Hi Carlos,

If it is possible, we would like to do it on the client side. Is there the possibility to use a correct method sendData on the client side?
If we could not do it on the client side, we could handle the signal sended by the server side using the livekit openvidu library imported on our angular project, right? Or we could use one of the methods of the openvidu components library?
If it so could you give us an example on how to do it?

Greetings,
Matteo