toggle menu
sdkKIMCore
androidJvm
switch theme
search in API
sdkKIMCore
/
com.kingsoft.kim.core.example.util
/
KMediaUtil
KMedia
Util
open
class
KMediaUtil
Members
Constructors
KMedia
Util
Link copied to clipboard
constructor
(
)
Functions
bitmap2File
Link copied to clipboard
open
fun
bitmap2File
(
bitmap
:
Bitmap
,
name
:
String
)
:
String
Bitmap保存成File
get
Video
Thumbnail
Link copied to clipboard
open
fun
getVideoThumbnail
(
videoPath
:
String
,
width
:
Int
,
height
:
Int
,
kind
:
Int
)
:
Bitmap
获取视频的缩略图 先通过ThumbnailUtils来创建一个视频的缩略图,然后再利用ThumbnailUtils来生成指定大小的缩略图。 如果想要的缩略图的宽和高都小于MICRO_KIND,则类型要使用MICRO_KIND作为kind的值,这样会节省内存。
get
Video
Thumbnail
Path
Link copied to clipboard
open
fun
getVideoThumbnailPath
(
videoPath
:
String
,
width
:
Int
,
height
:
Int
)
:
String