Android not playing Video .mp4

后端 未结 3 1764
无人及你
无人及你 2020-12-10 20:04

hi guys i have prepared a code to just play a simple mp4 file from my res folder... The coding is something like this...

    public class VideoPlayer extends         


        
相关标签:
3条回答
  • 2020-12-10 20:20

    Android supports 3gp and mp4 format, but still sometimes there are problems in playing an mp4 content. one thing what I have found out from my research is that, this might be because the resolution problem with the video. I think that you should re-size the resolution of your mp4 video. This might help.

    0 讨论(0)
  • 2020-12-10 20:21

    Thanx a lot commonsware.com... but i found the solution to the problem... And astonishingly its the PC processor which is the culprit... I checked n a higher configuration and guess wat... it worked perfectly fine... though sometimes if we do some processing in the background the dialog box does come up but on clicking ok it starts playing the video after some time...

    But i confirm that this technique of playing file from resource is ok as far as i know...

    sorry to waste ur precious time in a mundane hardware problem... but hope it'll be useful for other people who get this problem...

    0 讨论(0)
  • 2020-12-10 20:35

    I have not attempted to play a video clip out of a resource, and I am not certain that it works.

    As a test, put the video clip on the SD card and use that as the source of your video.

    If you get the same symptoms, then either the MP4 file has issues or it is something with your test environment (e.g., you are using the emulator and don't have a quad-core CPU).

    If the SD card test works, though, then I suspect the problem is packaging it as a resource.

    0 讨论(0)
提交回复
热议问题