mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 23:54:25 +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 { takeVideoScreenshotsWorkflow } from './take-video-screenshots'
|
||||||
import { overlayImageAnnotationWorkflow } from './overlay-image-annotation'
|
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> {
|
export async function transcodeMedia(task: WorkflowTask): Promise<void> {
|
||||||
const payload = task.payload
|
const payload = task.payload
|
||||||
if (payload?.pdfPages) {
|
if (payload?.pdfPages) {
|
||||||
@@ -26,6 +31,9 @@ export async function transcodeMedia(task: WorkflowTask): Promise<void> {
|
|||||||
return transcodeVideoWorkflow(task)
|
return transcodeVideoWorkflow(task)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Legacy alias for transcodeMedia workflow.
|
||||||
|
*/
|
||||||
export const transcodeWorkflow = transcodeMedia
|
export const transcodeWorkflow = transcodeMedia
|
||||||
|
|
||||||
export * from './transcode-video'
|
export * from './transcode-video'
|
||||||
|
|||||||
Reference in New Issue
Block a user