Optimized VideoView

suggest change

Versions

This topic was documented against Android 1.0. The custom view on the ListView page extends TextureView, which was added in API 14.

Introduction

Playing a video using a VideoView which extends SurfaceView inside of a row of a ListView seems to work at first, until the user tries to scroll the list. As soon as the list starts to scroll, the video turns black (sometimes displays white). It keeps playing in the background, but you can't see it anymore because the rest of the video renders as a black box. With the custom Optimized VideoView, the videos keep playing while the ListView scrolls, as they do in Instagram, Facebook, and Twitter.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents