[Android] Android video display

Thomas Guillem thomas at gllm.fr
Wed Oct 29 18:41:00 CET 2014


Ideally, we should use a TextureView only with mediacodec and when a
video has a rotation.
But it's not obvious to wait for the rotation, and then use the good
view...

On Wed, Oct 29, 2014, at 18:33, Felix Abecassis wrote:
> 2014-10-29 3:11 GMT-07:00 Paulo Vitor Magacho da Silva
> <pvmagacho at gmail.com>:
> > Hi,
> >
> > Right now, the Android VLC port uses OpenGL or SurfaceView to display the
> > video.
> >
> > SurfaceView has the disadvantage of not enabling pinch (zoom in/out) and
> > snapshot. I think this was solved by TextureView
> > (http://developer.android.com/reference/android/view/TextureView.html).
> > However this works only for API 14+.
> > I would like to give it a try and add this option to display the video
> > (based on API Level, either SurfaceView or TextureView is used). Any hints
> > on how to do that ? Anyone ever tried ?
> >
> 
> I've experimented it with TextureView a bit a few months ago, you can
> find my patches here:
> https://github.com/flx42/vlc/tree/android-post-release
> https://github.com/flx42/vlc-android/tree/android-post-release
> It hasn't been rebased since and it's probably unstable. The goal was
> to have a clean way to reorient the video.
> 
> There are also two problems with this approach:
> - TextureView usually takes more memory and can be slower. I noticed a
> 5-15% increase in power consumption with a TextureView. This is really
> a showstopper.
> - Only SurfaceView can display DRM content. OK, we do not support it
> yet but we might want in the future.
> 
> On IRC I discussed with someone named "Luca" (can't remember his exact
> nick, luc4 maybe?) and he did something similar, he showed me a video
> where he was able to get nice distortions during playback. Maybe if
> you can find him he can help you :)
> 
> Regards,
> 
> > Thank you,
> > Paulo Vitor
> >
> > _______________________________________________
> > Android mailing list
> > Android at videolan.org
> > https://mailman.videolan.org/listinfo/android
> >
> 
> 
> 
> -- 
> Félix Abecassis
> http://felix.abecassis.me
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android


More information about the Android mailing list