Articles of video player

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

Can I remove the download button in the WordPress Native Video Player? I don’t want to encourage people to download my video’s.

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

Using WordPress 4.4.2 (latest version as of writing this) I’m trying to use the shortcode to show a video on my site. If I provide a url ending with the filename.mp4 it works fine: but when I add a querystring parameter to the end of the URL, it refuses to show the video player. Instead, […]

Vimeo video embeds doesnt seem to work with ACF

I was trying to embed a vimeo link into a site using ACF custom fields and I am not getting anything in the front end but just a blank space as shown below. I tried multiple approaches including a vimeo iframe as well as just pasting the link but nothing seems to work. The embed […]

Remove wp-mediaelement.css from wp_head

I´m customizing the new core audio/video player via CSS in my styles.css. I tried to remove the wp-mediaelement.css with the following code in functions.php, because I don´t need it anymore. function custom_deregister_styles() { wp_deregister_style( ‘mediaelement’); } add_action( ‘wp_print_styles’, ‘custom_deregister_styles’, 100 ); The problem is, that this function removes the call of mediaelementplayer.min.css and wp-mediaelement.css. The […]

Embed .mov file via 'Add Media' not working

I know since WP 3.6 we’ve been able to upload and embed various file formats and that the ‘Add Media’ button effectively implements the correct media embed shortcode for us. I’m having a problem in WP4.0 using ‘Add Media’ to embed quicktime (.mov) files. The embed works fine for the other supported video MIME types […]

Plugin to embed local video into WordPress?

What’s the best way to achieve this: I have local videos on my server, but if I use the WP add media button I just get a link to a video, rather than it embedded. Are there any good plugins which will let me embed local video? Everything seems to support video sharing from Google, […]

How add class youtube and type/html to oembed code?

How can i add : class=”youtube-player” type=”text/html” to iframe like : function Oembed_youtube_no_title($html,$url,$args){ $url_string = parse_url($url, PHP_URL_QUERY); parse_str($url_string, $id); if (isset($id[‘v’])) { return ‘<iframe class=”youtube-player” type=”text/html” src=”https://www.youtube.com/embed/’ .$id[‘v’].’?vq=large&autohide=1&autoplay=1&fs=1&hl=fr&rel=0&loop=1″ frameborder=”0″ allowfullscreen></iframe>’; } return $html; }