0

I want to play an video on android using Phone Gap, Html5 and Jquery-mobile.

But i am not able to get the video and got the below error

03-16 16:13:58.057: E/libEGL(551): call to OpenGL ES API with no current context (logged once per thread) 03-16 16:13:58.126: E/libEGL(551): call to OpenGL ES API with no current context (logged once per thread) 03-16 16:13:58.137: E/libEGL(551): call to OpenGL ES API with no current context (logged once per thread) 03-16 16:13:58.137: E/libEGL(551): call to OpenGL ES API with no current context (logged once per thread) 03-16 16:13:58.137: E/libEGL(551): call to OpenGL ES API with no current context (logged once per thread) 03-16 16:13:58.137: E/libEGL(551): call to OpenGL ES API with no current context (logged once per thread) 03-16 16:17:08.816: E/MediaPlayer(551): error (1, -1004) 03-16 16:17:08.816: E/MediaPlayer(551): Error (1,-1004)

** Html Code: **

<body>     
<section>
<div>
<video id="video" height="240" width="360" autoplay autobuffer controls >
<source src="http://css.flepstudio.org/demo/video_player/assets/videos/21_Jump_Street.mp4">
<source src="http://css.flepstudio.org/demo/video_player/assets/videos/21_Jump_Street.ogv" type="video/ogg">    Video is not present
</video>
</div>           
</section>
</body>
user229044
  • 232,980
  • 40
  • 330
  • 338
Srikanth Chilukuri
  • 563
  • 4
  • 17
  • 31

2 Answers2

0

Try this Plugin:

http://simonmacdonald.blogspot.in/2011/11/video-player-plugin-for-phonegap.html

Also look at whitelist for android. Look at a file in /res/xml in your project filename: PhoneGap.xml

~K

metalfight - user868766
  • 2,722
  • 1
  • 16
  • 20
-1

You shouldn't need neither jquery nor PhoneGap. PLease take a look at this very popular thread. <video> tag is part of HTML 5, however there are definitely issues of getting it work on all phones. I have shared in the same thread a solution, that seem to work for all kinds of phones. Hopefully you will find it helpful.

Community
  • 1
  • 1
Boris Strandjev
  • 46,145
  • 15
  • 108
  • 135