How to display Video in the Android Emulator from Remote URL?

前端 未结 3 1068
花落未央
花落未央 2020-12-05 17:05

I am using the following code to display a video file in the android emulator,it works fine when the video file is stored in a SDcard.But when i give any URL of a video the

3条回答
  •  醉梦人生
    2020-12-05 17:30

    you should create a Sdcard in your simulator and then change your eclipse windows view to DDMS chaange your path to mnt/sdcard and push your file onto the device the action buttom is on the right-up of DDMS ,it is a phone icon

    then change your .java path

    private String path = "mnt/sdcard/funny.mp4";
    

    your should work on it.

提交回复
热议问题