I have a RecyclerView with its Adapter and LayoutManager. Adapter has approximate 15 different ViewHolders. One of them contain WebView which loads external contents (99% of them are videos outside of YouTube). The problem comes when any View of Adapter gets out of the screen - video in WebView keeps playing and sound is playing. Still, that's acceptable for me.
The key problem starts when I move to another Activity. The sound of the video is still present.
Is there any way RecyclerView could notify me when any of its children views change visibility state (meaning disappears from display)?