'Can't embed a TikTok video

I just wanted to embed a TikTok video to my local website.

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
     <blockquote class="tiktok-embed" cite="https://www.tiktok.com/@zacksjerryrig/video/6828268207359413509" data-video-id="6828268207359413509" style="max-width: 605px;min-width: 325px;" > <section> <a target="_blank" title="@zacksjerryrig" href="https://www.tiktok.com/@zacksjerryrig">@zacksjerryrig</a> <p>Buy a case for your iPad or else... @whatsinside  did the same test, go see how it turned out <a title="ipad" target="_blank" href="https://www.tiktok.com/tag/ipad">##ipad</a> <a title="teardown" target="_blank" href="https://www.tiktok.com/tag/teardown">##teardown</a> <a title="jerryrig" target="_blank" href="https://www.tiktok.com/tag/jerryrig">##jerryrig</a> <a title="jerryrigeverything" target="_blank" href="https://www.tiktok.com/tag/jerryrigeverything">##jerryrigeverything</a></p> <a target="_blank" title="♬ original sound - Zack" href="https://www.tiktok.com/music/original-sound-6828268206063405830">♬ original sound - Zack</a> </section> </blockquote> <script async src="https://www.tiktok.com/embed.js"></script>
</body>
</html>

It won't show the video itself and all the captions lost their styles.



Solution 1:[1]

TikTok officially provide Embed tag to your website. you can just copy that HTML Tag and past in your code base.

Official documentation https://developers.tiktok.com/doc/Embed

Image below shows how to copy that embed html code.

enter image description here

Solution 2:[2]

I wonder if there is issue with "cross-site" cookie planting attempt by tiktok. If this is issue, you will see it as an "issue" - say in chrome developer console.

If this is indeed an issue then there is another issue to be careful of: need to be careful of European laws which require disclosure of non-essential cookies.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Theepag
Solution 2 Mtsaha