]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/lib/live/shared/transcoding-wrapper/remote-transcoding-wrapper.ts
Bumped to version v5.2.1
[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,
17ecdf61 8 sessionId: this.sessionId,
0c9668f7
C
9 toTranscode: this.toTranscode,
10 video: this.videoLive.Video,
11 outputDirectory: this.outDirectory,
12 playlist: this.streamingPlaylist,
13 segmentListSize: this.segmentListSize,
14 segmentDuration: this.segmentDuration
15 })
16 }
17
18 abort () {
19 this.emit('end')
20 }
21}