mirror of https://github.com/Chocobozzz/PeerTube
Fix webtorrent resolution issue
parent
c910f667d2
commit
cf57794e9b
|
@ -30,11 +30,12 @@ declare module 'video.js' {
|
|||
|
||||
qualityLevels (): { height: number, id: number }[] & {
|
||||
selectedIndex: number
|
||||
selectedIndex_: number
|
||||
|
||||
addQualityLevel (representation: {
|
||||
id: number
|
||||
label: string
|
||||
height: number,
|
||||
height: number
|
||||
_enabled: boolean
|
||||
}): void
|
||||
}
|
||||
|
|
|
@ -650,8 +650,8 @@ class WebTorrentPlugin extends Plugin {
|
|||
}
|
||||
|
||||
for (let i = 0; i < qualityLevels.length; i++) {
|
||||
const q = this.player.qualityLevels[i]
|
||||
if (q.height === resolutionId) qualityLevels.selectedIndex = i
|
||||
const q = qualityLevels[i]
|
||||
if (q.height === resolutionId) qualityLevels.selectedIndex_ = i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue