android capture video frame

前端 未结 8 1723
名媛妹妹
名媛妹妹 2020-11-29 03:40

I need to get a frame of a video file (it may be on sdcard, cache dir or app dir). I have package android.media in my application and inside I have class MediaMetadataRetrie

8条回答
  •  再見小時候
    2020-11-29 04:08

    The exception is thrown also when the File doesn't exist. So before calling setDataSource() you'd better check if new File(url).exists().

提交回复
热议问题