回调播放器debug info

This commit is contained in:
Caleb
2026-03-02 17:42:17 +08:00
parent a9e97d56cb
commit 5020a6afc4
5 changed files with 76 additions and 0 deletions

View File

@@ -713,6 +713,21 @@
}
}
- (void)player:(SellyLiveVideoPlayer *)player onDebugInfo:(SellyLivePlayerStats *)stats {
NSLog(@"统计信息: 协议=%@, CPU=%ld%%/%ld%%, FPS=%ld, 码率=%ldkbps/%ldkbps, RTT=%ldms ,freezeTime=%ldms, 分辨率=%@, 丢包率=%.2f%% timestampMs=%lld",
stats.protocol,
stats.appCpu,
stats.systemCpu,
stats.fps,
stats.videoBitrate,
stats.audioBitrate,
stats.rtt,
stats.freezeTime,
NSStringFromCGSize(stats.videoSize),
stats.packetLossRate,
stats.timestampMs);
}
#pragma mark - Screenshot
- (void)saveCurrentFrameToPhotoAlbum:(UIImage *)image {