回调播放器debug info
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user