From e5a240a63118a2f9dfe487b6ae493e6ae4bc650a Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Tue, 3 Jan 2017 15:05:12 -0500 Subject: [PATCH] docs(faq): add a question about autoplay (#3898) --- docs/faq.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 8e4836ed6d..2e52a8933c 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -15,6 +15,8 @@ * [If you don't think you can fix the issue or add the feature](#if-you-dont-think-you-can-fix-the-issue-or-add-the-feature) * [Q: What is a reduced test case?](#q-what-is-a-reduced-test-case) * [Q: What media formats does video.js support?](#q-what-media-formats-does-videojs-support) +* [Q: How to I autoplay the video?](#q-how-to-i-autoplay-the-video) + * [Q: How can I autoplay a video on a mobile device?](#q-how-can-i-autoplay-a-video-on-a-mobile-device) * [Q: How can I play RTMP video in video.js?](#q-how-can-i-play-rtmp-video-in-videojs) * [Q: How can I hide the links to my video/subtitles/audio/tracks?](#q-how-can-i-hide-the-links-to-my-videosubtitlesaudiotracks) * [Q: What is a plugin?](#q-what-is-a-plugin) @@ -117,6 +119,39 @@ techs made available to video.js. For example, video.js 5 includes the Flash tec enables the playback of FLV video where the Flash plugin is available. For more information on media formats see the [troubleshooting guide][troubleshooting]. +## Q: How to I autoplay the video? + +Video.js supports the standard html5 `autoplay` attribute on the video element. +It also supports it as an option to video.js or as a method invocation on the player. + +```html +