use `autoplay` property instead of event