]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/hls.ts
Add bulk comment actions on account dropdown
[github/Chocobozzz/PeerTube.git] / server / lib / hls.ts
index c94b599df480ce3b282846e8e227ffc290aefe41..443a600887c07d41b533ee733dd72b0c9d51c5dd 100644 (file)
@@ -50,8 +50,8 @@ async function updateMasterHLSPlaylist (video: MVideoWithFile) {
     let line = `#EXT-X-STREAM-INF:${bandwidth},${resolution}`
     if (file.fps) line += ',FRAME-RATE=' + file.fps
 
-    const audioCodec = await getAudioStreamCodec(filePlaylistPath)
-    const videoCodec = await getVideoStreamCodec(filePlaylistPath)
+    const audioCodec = await getAudioStreamCodec(videoFilePath)
+    const videoCodec = await getVideoStreamCodec(videoFilePath)
     line += `,CODECS="${videoCodec},${audioCodec}"`
 
     masterPlaylists.push(line)