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

前端 未结 11 1378
無奈伤痛
無奈伤痛 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:58

    If you have mp4 file having H.264 baseline encoding and still you are unable to play video in your android device then it might be problem in .htAccess file on server side. It might be zipping .mp4 file. few devices are able to play video by unzipping it and stream it but not in all device cases. You need to change .htAccess file on server side. Change in output filter and include file format .mp4 to exclude it from being zip at streaming time.

    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|swf|mp4)$ \ no-gzip dont-vary
    

提交回复
热议问题