Skip to content

Commit fb87207

Browse files
authored
Merge pull request #473 from jermspeaks/content/stream-tiktok-embed-obsidian
Create post about tiktok embed on obsidian
2 parents 6c67bd0 + cc59915 commit fb87207

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
draft: false
3+
pubDate: "2024-06-20T20:24:10.374Z"
4+
title: "Embed TikTok videos in Obsidian"
5+
tags: ["TikTok", "Obsidian"]
6+
---
7+
8+
How to embed TikTok videos in Obsidian's editing/live preview and reading mode.
9+
10+
```html
11+
<iframe
12+
src="https://www.tiktok.com/player/v1/7382225350710824222?autoplay=0"
13+
allow="fullscreen"
14+
style="width:100%;height:50vh;"
15+
/>
16+
```
17+
18+
where `7382225350710824222` is the video id you get from TikTok from this example link: `https://www.tiktok.com/@_jen_hamilton_/video/7382225350710824222`.
19+
20+
The TikTok v1 player has a bunch of controls that you can use to modify from this [documentation](https://developers.tiktok.com/doc/embed-player#customize_the_player_).
21+
22+
There's still some wonky height issues, and I suspect this is the default height Obsidian has on the container around the editor. I gave it a good enough viewable height of `50vh`, which should be enough.
23+
24+
### Example Video
25+
26+
<div>
27+
<iframe src="https://www.tiktok.com/player/v1/7382225350710824222?autoplay=0" allow="fullscreen" style="width:100%;height:60vh;"></iframe>
28+
</div>
29+
30+
### Reference links
31+
32+
- [How do I embed TikTok Videos? - Help - Obsidian Forum](https://forum.obsidian.md/t/how-do-i-embed-tiktok-videos/13532/1)
33+
- [Emedding TikTok Videos - Help - Obsidian Forum](https://forum.obsidian.md/t/emedding-tiktok-videos/63032)
34+
- [html - How to stop auto play in an embedded video? - Stack Overflow](https://stackoverflow.com/questions/76249039/how-to-stop-auto-play-in-an-embedded-video)
35+
- [TikTok for Developers](https://developers.tiktok.com/doc/embed-player)

0 commit comments

Comments
 (0)