]>
Commit | Line | Data |
---|---|---|
0c9668f7 C |
1 | import { LiveRTMPHLSTranscodingJobHandler } from '@server/lib/runners' |
2 | import { AbstractTranscodingWrapper } from './abstract-transcoding-wrapper' | |
3 | ||
4 | export 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 | } |