getIsMovieDone() not triggering, need to use getPosition() >= 0.99f

The title says it all.

I have some videos that are not triggering getIsMovieDone() == true and I’ve had to hack a check for the position being 0.99 to see if they’re done playing.

Has anyone else run into this before?

yes and I used the same solution. It did the job so I never bothered to check it. It seemed to be linked to codec for me and that kind of makes sense that if it is looking for an Iframe it does not get called as there is no more frames after the last iframe but the movie is not over.

Yes. It is a general situation. We too we check 0.99 to solve the issue.

OK. Good to know that I’m not the only one seeing this. So, 0.99 is the current accepted solution. NICE.

I’ll see if something’s going wrong when encoding the videos. Thanks!

H.264 works very good and it is supported on all Android devices and versions. Other codecs are not widely supported as H.264.