Video playback stops when modal is closed