TikTok videos are invading the world, and in many cases it is necessary to embed them in an article to give context to the content or to show the most viral that circulates on the platform.
Some CMS, such as WordPress, already allow you to display the video just by putting the URL in the content, although TikTok has a specially designed code to embed the desired material.
This code can be found in each publication, as shown in the screenshot below. We just have to copy it and we will have the video on our website.
The point is that when we talk about AMP pages, the matter changes, since this code is not compatible. For this, TikTok has just announced
When we use the component
Using the full TikTok URL for the data-src attribute has the added benefit of including a placeholder thumbnail image and includes the TikTok title as part of the tag in the embedded iframe for better accessibility.
AMP, TikTok y WordPress
If you use WordPress and you have the AMP plugin in its version v2.1.4 or higher, the component will be used automatically
You have more details about the use of AMP in blog.amp.dev, where they are always telling the news of this format designed for quick reading on mobile devices.