android capture video frame

前端 未结 8 1731
名媛妹妹
名媛妹妹 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:17

    Uri's are not very specific. Sometimes they refer to something in a bundle. They often need to be translated to an absolute path form. The other instance in which you used the Uri, it probably was smart enough to check what kind of Uri it was. This case that you have shown appears to be not looking very hard.

提交回复
热议问题