Video shortcode – autoplay all videos

I ran into this problem while trying to make HTML videos behave like GIFs. WordPress’s built-in video player uses HTML video elements but does not allow videos to play simultaneously. Instead of using the default WordPress video player (which is best used for more standard video content), I chose to manually use the <video> element … Read more

Vimeo video embeds doesnt seem to work with ACF [closed]

If the custom field contains just the URL you can achieve this using wp_oembed_get $video_url=”https://vimeo.com/75791532″; $video = wp_oembed_get( $video_url ); echo $video; If the custom field contains other content as well something like this should work. $content=”<p>Check out hte latest vid!</p> https://vimeo.com/75791532″; $content = apply_filters(‘the_content’, $content); echo $content; the_content filter automatically applies the oembed filter.

Which are the MediaElement.js scripts to enqueue

I had the same issue, but with the audio player. First of all, you need enqueue MediaElement styles wp_enqueue_style( ‘wp-mediaelement’ ); Next you need to add wp-mediaelement as dependency of your app script or enqueue it. wp_enqueue_script(‘wp-mediaelement’); or wp_enqueue_script( ‘app’, get_stylesheet_directory_uri() . ‘/js/app.js’, array( ‘jquery’, ‘wp-mediaelement’ )); As result you need something like that: function … Read more

How can I get the [video] shortcode to allow query string parameters?

You got two options. Either you filter your valid video extentions as @birgire recommended. I remember a similar issue for the audio shortcode here. There I found a workaround by allowing the empty audio extension. You could try something similar with the video extensions. Here’s a demo plugin: /** * Allow the empty video extension … Read more

Plugin to embed local video into WordPress? [closed]

You can try this: Use JWPlayer or Flowplayer or whichever videoplayer you like. You can also use http://videojs.com/ which will give you the ability to automatically change from html5 to flash player and it’s free and even hosted by them. Now, from their own example: <video id=”my_video_1″ class=”video-js vjs-default-skin” controls preload=”auto” width=”640″ height=”264″ poster=”my_video_poster.png” data-setup=”{}”> … Read more

Trying to remove the download button on WordPress Native Video Player?

This is actually the default behavior of how the browser renders HTML5 video. From this post you should be able to use the following CSS to hide the button. video::-internal-media-controls-download-button { display:none; } video::-webkit-media-controls-enclosure { overflow:hidden; } video::-webkit-media-controls-panel { width: calc(100% + 30px); /* Adjust as needed */ }