Skip to content

buildOssVideoPosterPath ​

由主视频 OSS 对象路径生成同目录封面路径,后缀 .poster.jpg。

函数签名 ​

typescript
function buildOssVideoPosterPath(videoObjectPath: string): string

使用场景 ​

  • IM 媒体上传后提取首帧并上传缩略图
  • completeMediaUpload.thumbnailUrl 与主视频 path 保持目录一致