WeChat Mini Programs intercepted the first frame of the video as a picture.

in native js, the drawImage method of canvas supports passing video elements.

clipboard.png

url:

clipboard.png

ask the gods, if you want to intercept the first frame of the video as a picture in WeChat Mini Programs, what can you do?


I don't know how your backend is saved. Object storage like OSS can provide video clip function


have you solved


Mini Program's video component is native and does not support loading into canvas

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1befd04-314f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1befd04-314f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?