getAvailableContainers()
返回一个可用容器的数组,这些容器可以与 convertMedia 函数一起使用。
🌐 Returns an array of available containers that can be used with the convertMedia function.
Getting available containersimport {getAvailableContainers } from '@remotion/webcodecs'; constcontainers =getAvailableContainers ();console .log (containers );
note
可以向此函数添加新容器,并且这不会被视为破坏性更改。
作为一种类型
🌐 As a type
如果你需要一个涵盖可用输出容器的 TypeScript 类型,你可以导入类型定义:
🌐 If you need a TypeScript type that covers the available output containers, you can import the type definition:
Type definitionimport type {ConvertMediaContainer } from '@remotion/webcodecs';
另请参阅
🌐 See also