Skip to content

The videoNetworkStats event for OTPublisher does not always return the same thing #788

@RhesusP

Description

@RhesusP

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions