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 SurfaceTexture can be available before the setData method is called #22

Open pgloaguen opened 8 years ago

yqritc commented 8 years ago

@pgloaguen Sorry for late reply, but could u please tell me in detail why u need this workaround?

Deathhit commented 6 years ago

It feels like if onSurfaceTextureAvailable() happens before initializeMediaPlayer(), media player fails to set surface. So, video will not be visible while sound is still playing. I am not sure.