diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:36:48 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:57:51 +0100 |
commit | 49c3bf6fa25afb49c8a27937147043c6e4ce95c3 (patch) | |
tree | c4e126c19ee2dab4b7c8c66ec913618549ca9009 /server/lib/hls.ts | |
parent | 52201311e1973a12960466232d4dec861e8258ee (diff) | |
download | PeerTube-49c3bf6fa25afb49c8a27937147043c6e4ce95c3.tar.gz PeerTube-49c3bf6fa25afb49c8a27937147043c6e4ce95c3.tar.zst PeerTube-49c3bf6fa25afb49c8a27937147043c6e4ce95c3.zip |
Fix duplicate HLS resolution in master playlist
Diffstat (limited to 'server/lib/hls.ts')
-rw-r--r-- | server/lib/hls.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/hls.ts b/server/lib/hls.ts index c94b599df..443a60088 100644 --- a/server/lib/hls.ts +++ b/server/lib/hls.ts | |||
@@ -50,8 +50,8 @@ async function updateMasterHLSPlaylist (video: MVideoWithFile) { | |||
50 | let line = `#EXT-X-STREAM-INF:${bandwidth},${resolution}` | 50 | let line = `#EXT-X-STREAM-INF:${bandwidth},${resolution}` |
51 | if (file.fps) line += ',FRAME-RATE=' + file.fps | 51 | if (file.fps) line += ',FRAME-RATE=' + file.fps |
52 | 52 | ||
53 | const audioCodec = await getAudioStreamCodec(filePlaylistPath) | 53 | const audioCodec = await getAudioStreamCodec(videoFilePath) |
54 | const videoCodec = await getVideoStreamCodec(filePlaylistPath) | 54 | const videoCodec = await getVideoStreamCodec(videoFilePath) |
55 | line += `,CODECS="${videoCodec},${audioCodec}"` | 55 | line += `,CODECS="${videoCodec},${audioCodec}"` |
56 | 56 | ||
57 | masterPlaylists.push(line) | 57 | masterPlaylists.push(line) |