How to play videos from SD Card

前端 未结 5 1898
日久生厌
日久生厌 2020-12-17 16:51

I was creating a simple app which stream videos from net and I made it but now I want to change the code so that I can play video files from my SDCard

original code:

5条回答
  •  無奈伤痛
    2020-12-17 17:10

    Uri vidFile = Uri.parse(
       Environment.getExternalStorageDirectory().getAbsolutePath()+"filename");
    ... 
    

    the rest of the code will be same.

提交回复
热议问题