레퍼런스 autoplay()

autoplay()

Sets the audio/video to play once it's loaded.

The parameter, shouldAutoplay, is optional. Calling media.autoplay() without an argument causes the media to play automatically. If true is passed, as in media.autoplay(true), the media will automatically play. If false is passed, as in media.autoPlay(false), it won't play automatically.

예제

구문

autoplay([shouldAutoplay])

매개변수

shouldAutoplay
Boolean: whether the element should autoplay.

관련 레퍼런스