Best method to play hi-res frame animation in android -


i want play 6 sec hi-res video animation in background of activity views. on device thats 1080x1080. video has have transparent background. did research on animationdrawable , people pain in a... (outofmemory exceptions,...)

i want able loop video , change speed. framerate should @ least 20fps.

how it?

i'd encode video .mp4 (avc), , decode mediacodec onto surfacetexture, render texture opengl es. render onto depends on else app doing; either surfaceview or textureview.

you said video in background, must have transparent background, suggests it's in foreground. not quite sure you're trying achieve. video won't have alpha channel, can use fragment shader set alpha (either globally or according video pixel values).

you can find examples of video playback in grafika (with looping , speed control). "texture camera" activity relevant, illustrates rendering through surfacetexture (though it's using live video camera rather recorded file). camera filter demo shows simple fragment shaders.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -