-async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoResolution, copyCodecs: boolean, isPortraitMode: boolean) {
+// Generate an HLS playlist from an input file, and update the master playlist
+async function generateHlsPlaylist (options: {
+ video: MVideoWithFile
+ videoInputPath: string
+ resolution: VideoResolution
+ copyCodecs: boolean
+ isPortraitMode: boolean
+}) {
+ const { video, videoInputPath, resolution, copyCodecs, isPortraitMode } = options
+