moved startend to only-if-media