mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 19:18:39 +00:00
feat(transcode): add HLS live streaming support (#436)
* feat(transcode): add HLS live streaming support * fix(hls): resolve version stacks for public HLS and add workflow E2E test
This commit is contained in:
@@ -46,6 +46,16 @@ export class VideoTranscoder {
|
||||
return this
|
||||
}
|
||||
|
||||
setHls(enabled?: boolean, resolutions?: PrismaJson.HlsResolutionLadder[]): this {
|
||||
if (enabled !== undefined) {
|
||||
this.spec.hlsEnabled = enabled
|
||||
}
|
||||
if (resolutions) {
|
||||
this.spec.hlsResolutions = resolutions
|
||||
}
|
||||
return this
|
||||
}
|
||||
|
||||
async submit(): Promise<string> {
|
||||
const task = await this.db.workflowTask.create({
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user