How to anchor to embed video

Editing the raw HTML isn’t going to work, a worst case scenario is it fails block validation when reopened in the editor and your edits get replaced automatically. Instead, use the anchor box under the advanced panel. Since the HTML of an embed usually comes from a 3rd party via OEmbed, you can wrap the … Read more

Vimeo video play button color function

I did a couple of things to fix this issue… I added a function that adds a class to my Vimeo iFrame: https://wp-time.com/add-custom-class-to-wordpress-iframe-video/ function video_class($html) { if (preg_match(‘/(vimeo.com)/’, $html)) { return str_replace(‘<iframe’, ‘<iframe class=”video”‘, $html); } else { return $html; } } add_filter(’embed_oembed_html’, ‘video_class’, 99, 4); I implemented some JS to change the properties of … Read more

Are self-hosted videos a good idea? [closed]

This is rather subjective but here is my view. I have built video galleries used on public and private servers. I use Miro for compression in open source formats and video.js to support embedded viewing. Miro does a great job of minimizing bandwidth consumption. video.js has been more than adequate; I consider it a very … Read more