Strange Behavior of Android VideoView - “Can't Play Video”

前端 未结 11 1372
無奈伤痛
無奈伤痛 2020-11-30 03:06

In my application,showing video from sdcard folder or new taken video from Video intent in a VideoView in different Activity by passing file path of the video selected.

11条回答
  •  一整个雨季
    2020-11-30 03:43

    Make sure that your video is in MP4 format , but if still does not play or shows same error then fault is not with the code. Fault is in the video resolution. just check height and width of you video and match it with you video view component. There are lot of free video compressors Online available. So just compress your video and test it.

    It will work. Cheers!!!

提交回复
热议问题