Take the 2-minute tour ×

I added a SurfaceView into the Cube demo from the ApiDeoms. And tried to use a MediaPlayer to play with it. But it failed with low-level player error which is different on different devices. Is it possible to play videos on a GLSurfaceView or it's all about hardware support?

share|improve this question
add comment

closed as too localized by BoltClock Mar 1 '12 at 6:20


2 Answers

up vote 0 down vote accepted

I found out that depends on native decoder support. If it failed on a device, the device does not support it.

share|improve this answer
add comment

To say "If it failed on a device, the device does not support it." is pretty irresponsible considering you're giving advice to people who are at the demo level and might not know how infested these message boards are with people who "answer" questions without having a clue what they are talking about.

There are hundreds of different errors that you could be experiencing, however the short answer to the question:

"Is it possible to play videos on a GLSurfaceView"

would simply be "yes it is". If your device is OpenGL compliant (pretty much if it was built this decade then that's a safe bet), then you can display video in some form or another with it. If you want a more informative answer however you're going to have to provide quite a bit more information, at the very least exactly what the errors are and ideally some logcat output.

share|improve this answer
Thanks for your answer. But it got different error logs depend on devices. So I just put the short answer because I only concern the app level. –  shiami Jan 10 '12 at 10:13
add comment

protected by Will Nov 23 '10 at 15:31

