Can a videoview play a video stored on internal storage?

前端 未结 6 1500
一向
一向 2020-11-29 04:12

I\'m trying to provide my users with the ability to use either external or internal storage. I\'m displaying both images and videos (of a scientific nature). When storing th

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 04:50

    You can't just play it directly.

    You need to implement a ContentProvider then pass the defined Uri to setVideoUri(uri) method.

提交回复
热议问题