openvidu-testapp: RTCIceCandidate stats for publisher and subscriber peer connections fixed in firefox

master
Piwccle 2025-07-10 16:12:08 +02:00
parent d44e24592d
commit ba1df4660c
1 changed files with 47 additions and 47 deletions

View File

@ -451,8 +451,7 @@ export class OpenviduInstanceComponent {
this.updateEventList(
RoomEvent.TrackSubscriptionFailed,
{ trackSid, participant },
`${participant.identity} (${trackSid}). Reason: ${
reason ? SubscriptionError[reason] : reason
`${participant.identity} (${trackSid}). Reason: ${reason ? SubscriptionError[reason] : reason
}`
);
}
@ -692,8 +691,7 @@ export class OpenviduInstanceComponent {
this.updateEventList(
RoomEvent.ParticipantPermissionsChanged,
{ prevPermissions, participant },
`${
participant.identity
`${participant.identity
} (previous: ${prevPermissions}, new: ${JSON.stringify(
participant.permissions
)}`
@ -1057,8 +1055,7 @@ export class OpenviduInstanceComponent {
? ('finalTranscription' as any)
: ('interimTranscription' as any),
{ participant: participantInfo.identity, message },
`${participantInfo.identity} ${
isFinal ? 'said' : 'is saying'
`${participantInfo.identity} ${isFinal ? 'said' : 'is saying'
}: ${message}`,
isFinal ? 'RoomEvent' : 'RoomEvent-InterimTranscription'
);
@ -1260,13 +1257,16 @@ export class OpenviduInstanceComponent {
const reports_stats: any[] = [];
pcTransport.getStats().then((stats: any) => {
stats.forEach((report: any) => {
console.log('Report Type:', report.type);
if (report.type === 'transport') {
if (report.selectedCandidatePairId) {
selectedCandidatePairId = report.selectedCandidatePairId;
}
}
if (report.type === 'candidate-pair') {
console.log('Candidate Pair Report:', report);
if (report.selected) {
selectedCandidatePairId = report.id;
}
const report_stats_object = {
report: report,
stats: stats,