samedi 18 avril 2015

Video's frame not showing on a TextureView after returning to an Android app

It's quite a simple problem, the TextureView works OK for videos, but for example:


I play a video, pause() the MediaPlayer, press the device's Home-button, than return into my app, and there's nothing displayed on the TextureView ---> I wish the last shown frame before the pause() call would be displayed...


The same thing happens without the pause() call, when the video ends --> with the last video's frame.


Same with the device's Menu-button (not only Home-button).


So basically the question is, how can I "save" the shown frame and re-display it when the user returns into the app ?


Aucun commentaire:

Enregistrer un commentaire