I want to use the call videoView.isAttachedToWindow()
within my fragment to verify if videoview is initialized fine and is ready to be called.
But this call requires api level 19 (current min is 14). What is the best alternative for videoView.isAttachedToWindow()
for API level 14 and above?
EDIT: My videoview plays video streamed through HDMI input of Android boxes. In certain hardware that has OS 4.0.4, videoview sometimes jitter.
ViewCompat.isAttachedToWindow()
will do the trick up to API 4.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With