yqritc / Android-ScalableVideoView

Android Texture VideoView having a variety of scale types like the scale types of ImageView such as fitCenter, centerCrop, centerTopCrop and more
Apache License 2.0
1.09k stars 223 forks source link

Fix media player init #48

Open 4eRTuk opened 5 years ago

4eRTuk commented 5 years ago

This avoids state loss when ScalableVideoView placed in a row in RecyclerView or ListView or similar. So when user scrolls over this row down, onDetached called and resources are released, but after user scrolls up again, onAttached restores the previous state.

Radiokot commented 1 year ago

Glad someone did this 😍 Thanks