RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / getVideoDuration

getVideoDuration

fun Context.getVideoDuration(videoId: String): Long

get Duration of Video from MediaStore.Video with given videoId

you can get videoId from Context.getVideoFileId()

Parameters

context - Context object

videoId - Video ID