Help Center/ SparkRTC/ FAQs/ SDK Usage/ Why Does the Program Crash when the onVideoStats, onAudioStatus, or onSubStreamStats Callback Is Triggered?
Updated on 2022-10-10 GMT+08:00

Why Does the Program Crash when the onVideoStats, onAudioStatus, or onSubStreamStats Callback Is Triggered?

The pointers of the input parameters localStats and remoteStats of the callback function may be null. Ensure that the pointers are not null before you use the parameters. Otherwise, a null pointer error may occur.