YouTube and Vimeo are both blocked in China. By using this video embed system, we can ensure that YouTube and Vimeo content is delivered there!
To use, be sure that you’re in the Text view when editing a post.
Here’s an example:
<div data-video-yid="oZ_53T2jBGg" title autoplay time=3 style="padding-bottom: 56.25%;margin-bottom:24px"></div>
This will load video with YouTube ID oZ_53T2jBGg, showing title, starting automatically (autoplay), and starting at 3 seconds from the beginning.
On the Blocks post, we have:
<div data-video-yid="oZ_53T2jBGg" style="padding-bottom: 56.25%;margin-bottom:24px"></div>
…because on that page we don’t want the title to show and we want the video not to autoplay. This is the format you should generally use.
To use a Vimeo video instead of YouTube, simply replace yid with vid, and use the Vimeo video ID.