This is not an appropriate name for this flag, because it also gets set when new videos are first discovered on the sdcard before they have ever been played.  How about seekedToCaptureFrame instead of playEnded?