Socket
Book a DemoInstallSign in
Socket

findvideoposter

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

findvideoposter

获取视频第一帧,返回图片file

1.0.9
latest
npmnpm
Version published
Maintainers
1
Created
Source

安装

npm install findvideoposter

使用

组件内使用
import findVideoPoster from 'findvideoposter' 

main.js里面使用
import findVideoPoster from 'findvideoposter' 
Vue.use(findVideoPoster)

方式一:findVideoPoster(file)

file: 视频file

let videoCover = await findVideoPoster(file);

//videoCover 得到的视频第一帧图片file

方式二:findVideoPoster(url, [Param])

url: 视频链接
Param: 可选值 "url",表示当前传入的是一个视频链接

let url = "https://husky-image-1252481836.cos.ap-guangzhou.myqcloud.com/T_1CXX4HS06XB3AI3PBB89X4RF/course_cover/1652149619710.mp4";
let videoCover = await findVideoPoster(url, "url");

Keywords

video Cover

FAQs

Package last updated on 12 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.