improved video play logic