Default subtitle for videos

From a UX perspective whether to display a subtitle track is a preference that should really be left up to the user. Edit: that being said, mediaelement.js allows you to specify a starting sub track by passing in this option: { startLanguage: ‘en’ }

Video Short Code and Media Fragments URI

Try embedding your video like this: <video controls> <source src=”https://www.domain.com/wp-content/uploads/2018/07/5898ca6e5276e4cd97c0bd730a2ed82c11780595-480p__80044.mp4#t=18″ type=”video/mp4″ /> </video> Paste this in your editor but make sure on the top right it is set to “Text” not “Visual”. When you switch it back to “Visual” you will just see blank gray frame. Preview the post and you should see the video … Read more

how to make video autoplay in widget

You can do that by writing JavaScript. Like, in your theme footer (footer.php) if you place code like below (before the ending </body> tag): <script> var vid = document.querySelector(‘video.wp-video-shortcode’); vid.autoplay = true; vid.load(); </script> It will autoplay all the videos of all the video widgets on the DOM (or in fact all the videos with … Read more