add high bitrate warning to the settings view

This commit is contained in:
True Zhuanjia
2024-07-29 12:27:47 +08:00
parent 98db99b3ff
commit abc7805aab
2 changed files with 25 additions and 1 deletions
@@ -214,6 +214,29 @@
}
}
},
"Bitrate: %.1f Mbps - Use High Bitrates with Caution!" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "串流码率: %.1f Mbps - 码率偏高, 谨慎使用!"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "串流码率: %.1f Mbps - 码率偏高, 谨慎使用!"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "串流码率: %.1f Mbps - 码率偏高, 谨慎使用!"
}
}
}
},
"Cancel" : {
"extractionState" : "manual",
"localizations" : {
@@ -821,7 +821,8 @@ BOOL isCustomResolution(CGSize res) {
- (void) updateBitrateText {
// Display bitrate in Mbps
[self.bitrateLabel setText:[LocalizationHelper localizedStringForKey:@"Bitrate: %.1f Mbps", _bitrate / 1000.]];
if(_bitrate / 1000. > 50.0) [self.bitrateLabel setText:[LocalizationHelper localizedStringForKey:@"Bitrate: %.1f Mbps - Use High Bitrates with Caution!", _bitrate / 1000.]];
else [self.bitrateLabel setText:[LocalizationHelper localizedStringForKey:@"Bitrate: %.1f Mbps", _bitrate / 1000.]];
}
- (NSInteger) getChosenFrameRate {