mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 04:36:54 +00:00
docs(transcode): add deprecation notice to legacy transcodeMedia workflow
This commit is contained in:
@@ -6,6 +6,11 @@ import { renderPdfPagesWorkflow } from './render-pdf-pages'
|
||||
import { takeVideoScreenshotsWorkflow } from './take-video-screenshots'
|
||||
import { overlayImageAnnotationWorkflow } from './overlay-image-annotation'
|
||||
|
||||
/**
|
||||
* @deprecated Legacy monolithic transcode workflow. Prefer using focused workflows:
|
||||
* `transcodeVideoWorkflow`, `transcodeImageWorkflow`, `transcodePdfWorkflow`,
|
||||
* `renderPdfPagesWorkflow`, `takeVideoScreenshotsWorkflow`, or `overlayImageAnnotationWorkflow`.
|
||||
*/
|
||||
export async function transcodeMedia(task: WorkflowTask): Promise<void> {
|
||||
const payload = task.payload
|
||||
if (payload?.pdfPages) {
|
||||
@@ -26,6 +31,9 @@ export async function transcodeMedia(task: WorkflowTask): Promise<void> {
|
||||
return transcodeVideoWorkflow(task)
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Legacy alias for transcodeMedia workflow.
|
||||
*/
|
||||
export const transcodeWorkflow = transcodeMedia
|
||||
|
||||
export * from './transcode-video'
|
||||
|
||||
Reference in New Issue
Block a user