fixed endsAt calculation.
fix small problem where animations start even if video doesn't.
fixed reset bug when the video is paused then seeked.