mirror of https://github.com/Chocobozzz/PeerTube
Fix video codec in HLS playlist
parent
6a4c30de0e
commit
a2b6ec7c3f
|
@ -125,7 +125,8 @@ async function getVideoStreamCodec (path: string) {
|
|||
baseProfile = baseProfileMatrix['High'] // Fallback
|
||||
}
|
||||
|
||||
const level = videoStream.level.toString(16)
|
||||
let level = videoStream.level.toString(16)
|
||||
if (level.length === 1) level = `0${level}`
|
||||
|
||||
return `${videoCodec}.${baseProfile}${level}`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue