Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

用 js 截取视频第N帧

用js可以通过canvas来获取视频base64格式的第一帧

如果不考虑后端 前端可以通过js和视频地址获取的视频第N帧吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

除非有后端具体的信息提供,否则前端没有办法确定是那一帧。
前端能够通过地址获取的只是某个帧的开始数据,普通在线点播中的s=XXXXX类数据只是保证从该帧数据开始能正常获取构建画面的完整信息。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...