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.

This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ