2023-04-21 07:55:10 -05:00
|
|
|
import { LiveRTMPHLSTranscodingJobHandler } from '@server/lib/runners'
|
|
|
|
import { AbstractTranscodingWrapper } from './abstract-transcoding-wrapper'
|
|
|
|
|
|
|
|
export class RemoteTranscodingWrapper extends AbstractTranscodingWrapper {
|
|
|
|
async run () {
|
|
|
|
await new LiveRTMPHLSTranscodingJobHandler().create({
|
2023-05-16 02:12:50 -05:00
|
|
|
rtmpUrl: this.inputPublicUrl,
|
2023-05-22 06:44:22 -05:00
|
|
|
sessionId: this.sessionId,
|
2023-04-21 07:55:10 -05:00
|
|
|
toTranscode: this.toTranscode,
|
|
|
|
video: this.videoLive.Video,
|
|
|
|
outputDirectory: this.outDirectory,
|
|
|
|
playlist: this.streamingPlaylist,
|
|
|
|
segmentListSize: this.segmentListSize,
|
|
|
|
segmentDuration: this.segmentDuration
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
abort () {
|
|
|
|
this.emit('end')
|
|
|
|
}
|
|
|
|
}
|