KMediaUtil

open class KMediaUtil

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun bitmap2File(bitmap: Bitmap, name: String): String
Bitmap保存成File
Link copied to clipboard
open fun getVideoThumbnail(videoPath: String, width: Int, height: Int, kind: Int): Bitmap
获取视频的缩略图 先通过ThumbnailUtils来创建一个视频的缩略图,然后再利用ThumbnailUtils来生成指定大小的缩略图。 如果想要的缩略图的宽和高都小于MICRO_KIND,则类型要使用MICRO_KIND作为kind的值,这样会节省内存。
Link copied to clipboard
open fun getVideoThumbnailPath(videoPath: String, width: Int, height: Int): String