Initial clean commit

This commit is contained in:
2026-03-26 12:05:37 +08:00
commit 7c3c8dffee
1177 changed files with 147248 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
//
// AVLiveStreamModel.m
// AVDemo
//
#import "AVLiveStreamModel.h"
@implementation AVLiveStreamModel
- (NSString *)displayName {
return self.stream.length > 0 ? self.stream : @"未知流";
}
- (NSString *)durationString {
NSInteger totalSeconds = (NSInteger)self.duration;
NSInteger hours = totalSeconds / 3600;
NSInteger minutes = (totalSeconds % 3600) / 60;
NSInteger seconds = totalSeconds % 60;
if (hours > 0) {
// 1 hh:mm:ss
return [NSString stringWithFormat:@"%02ld:%02ld:%02ld", (long)hours, (long)minutes, (long)seconds];
} else {
// 1 mm:ss
return [NSString stringWithFormat:@"%02ld:%02ld", (long)minutes, (long)seconds];
}
}
@end