I'm trying to get *inline* video in app using a *Webview* working running on a system image of ICS from the android-x86 community port that I built from source myself.
I've tested on both intel (i915) and amd (radeon) machines which I have and confirmed are both using GPU hardware acceleration but when trying to play inline video. In testing the audio plays fine, confirming that the files are being downloaded and decoded, but I get no video displayed. I have tried with same results for both h.264 and webm. I have also tried the exact same webpage on a ARM based device running ICS and the content plays fine there. I should also say that full screen playback works fine on both the intel and amd devices I'm testing on, but as I've found looking at the webview and webkit source, fullscreen and inline playback are implemented very differently. Investigating this further, I found that inline video playback rendering for a webview seems to be done primarily in external/webkit/Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp( http://git.android-x86.org/?p=platform/external/webkit.git;a=blob;f=Source/WebCore/platform/graphics/android/VideoLayerAndroid.cpp;h=482d711d50e1b3362e65b2fb0ae09035da924107;hb=ics-x86) in the method VideoLayerAndroid::drawGL() But putting log messages in there shows that it is never getting called. I know it should be getting called because putting a log message into the arm build I have shows the method being called per each video frame when running on my ARM device. I have also added log statements into VideoLayerAndroids constructor and they pritn so I know its at least getting initialised and that code inside the USE(ACCELERATED_COMPOSITING) c macro defines is being compiled in and run. So would anyone have run into this before or be able to point me to where drawGL should be getting called from to help me track down whats going wrong as greping through the code I've had a hard time figuring out the call chain involved in getting a video frame rendered to a inline html5 video element. thanks, Maks -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
