]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/lib/live/shared/transcoding-wrapper/remote-transcoding-wrapper.ts
Wait master playlist generation
[github/Chocobozzz/PeerTube.git] / server / lib / live / shared / transcoding-wrapper / remote-transcoding-wrapper.ts
CommitLineData
0c9668f7
C
1import { LiveRTMPHLSTranscodingJobHandler } from '@server/lib/runners'
2import { AbstractTranscodingWrapper } from './abstract-transcoding-wrapper'
3
4export class RemoteTranscodingWrapper extends AbstractTranscodingWrapper {
5 async run () {
6 await new LiveRTMPHLSTranscodingJobHandler().create({
28705705 7 rtmpUrl: this.inputPublicUrl,
0c9668f7
C
8 toTranscode: this.toTranscode,
9 video: this.videoLive.Video,
10 outputDirectory: this.outDirectory,
11 playlist: this.streamingPlaylist,
12 segmentListSize: this.segmentListSize,
13 segmentDuration: this.segmentDuration
14 })
15 }
16
17 abort () {
18 this.emit('end')
19 }
20}