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