Hi !
I'm facing an issue with the PublisherVideoNetworkStatsEvent : when I print this event, it doesn't always return the same thing. Half of the time, I have a timestamp field, the other half, the timestamp is replaced by a startTime field.
I have this code :
<OTPublisher
eventHandlers={{
videoNetworkStats: (event) => {
console.log('Publisher Stats:', event);
}
}}
/>
That displays this :
Publisher Stats: [{"connectionId": "484DD81C-64AA-4D3F-86CE-1099D0259165", "startTime": 1737557530376, "subscriberId": "21C3DC9C-6ED2-4726-AE6E-CBBD78363EC4", "videoBytesSent": 14674200, "videoPacketsLost": 0, "videoPacketsSent": 15708}]
Publisher Stats: [{"connectionId": "ECD05C0E-F113-4C5C-8A2A-2AC7BE1D62CE", "subscriberId": "BA821134-8E93-4515-AF1B-AFC563122669", "timestamp": 1737557726474, "videoBytesSent": 15423268, "videoPacketsLost": 0, "videoPacketsSent": 14524}]
Please, does anyone have a solution?