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:
parent
963962e8ac
commit
85c6a9aaea
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue