0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -05:00

Show FPS in qualities if it is above 30 #52

This commit is contained in:
dragongoose 2023-10-04 20:31:54 -04:00
parent 963962e8ac
commit 85c6a9aaea
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -72,8 +72,14 @@ export const createQualitySelector = (player: any) => {
qualityLevels.on('addqualitylevel', () => {
formatedQualities = qualityLevels.levels_.map((quality: QualityLevel) => {
let qualityFramerate = ""
if (quality.frameRate > 30) {
qualityFramerate = quality.frameRate
}
return {
name: quality.height?.toString() + 'p',
name: quality.height?.toString() + 'p' + qualityFramerate,
index: quality.id[0],
id: quality.id
}