lpandzic lpandzic -4 years ago 112
Android Question

How to detect when VideoView starts playing (Android)?

Here's the problem, I want to change play button to pause button when the video stream starts playing in videoview but I don't know how to detect that event?

Answer Source

I ended up using VideoView.setOnPreparedListener. This was enough to cover my problem (play button drawable change to pause)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download