lua获取视频第一帧
2023-01-24 09:16:15 最后更新
mian.iyu
call(a, "mlua", "video.get", "/storage/emulated/0/vvv.mp4")
us(5,"src",a)
video.mlua
function get(path)
  import "android.media.MediaMetadataRetriever"
  media = MediaMetadataRetriever()
  media:setDataSource(tostring(path))
  return media:getFrameAtTime()
end