Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RhesusP opened this issue Jan 22, 2025 · 0 comments

Comments

@RhesusP
Copy link

RhesusP commented Jan 22, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant