Videoview in viewflipper still plays when I leave the view to the previous child

I have a viewflipper controller with different views.

I click on firsview and I move on to secoundview with animation.

The second view is a video view with streaming video inside (it works great)

the problem is that I am returning with the physical physical button(flipper.showPrevious()) I redefine this to stop the video before the vacation withvideoView.stopPlayback();

When I go back to the first view, I still have the video playing on the first (only video or black screen, if I did stopPlayback()before)

How can i solve this? What am I doing wrong?

Hooray!

+3
source share
1 answer

videoView.setVisibility(int); .

0

All Articles