html5 video tag not working in android phonegap

后端 未结 6 785
-上瘾入骨i
-上瘾入骨i 2021-01-20 20:59

I have created application in android phonegap.I want to play video using html5 video player. My code is:



             


        
6条回答
  •  长发绾君心
    2021-01-20 21:30

    You said it didn't worked on emulator, right? Don't you think video isn't being reproduced mainly because on Android SDK emulator you probably don't have any hardware acceleration for it? Some things don't work properly (sometimes don't work at all) if you don't have HW acceleration and a device powerful enough for that.

    If that's the case, a workaround is using videos in 3GP format. That should work Android SDK emulator, and on older Android-powered cellphones with weak hardware. I used that on a project of mine.

提交回复
热议问题