On this page
Mobile webviews — including TikTok's — block video autoplay by default unless the video is muted, marked playsinline, and served in a format the webview's media stack accepts. A video that autoplays correctly in Safari may not autoplay in TikTok's in-app browser. Five steps to make it work.
Fix steps
Add
muted,playsinline, andautoplayattributes to the<video>tag. All three are required. Withoutmuted, mobile browsers block autoplay. Withoutplaysinline, iOS opens the video full-screen on play instead of inline. Withoutautoplay, it never starts.<video src="..." muted playsinline autoplay loop preload="auto"></video>Confirm the codec. TikTok's iOS webview uses WebKit and supports H.264 reliably; HEVC support is patchy. Android TikTok webview supports H.264 and VP9 but not all AV1 streams. Encode in H.264 baseline profile for maximum compatibility.
Check the MIME type and file extension. The server must return
Content-Type: video/mp4for.mp4files. A wrong content-type orapplication/octet-streamprevents the webview from recognizing the file as playable.Avoid third-party players that require parent-window context. YouTube embeds, Vimeo embeds, and Wistia embeds sometimes refuse to autoplay inside webviews because they detect the webview as non-standard. Self-hosted MP4 is more reliable.
Test with a low-bitrate fallback. TikTok's webview on cellular connections sometimes silently fails to load videos above a certain bitrate. Provide a
<source>ladder with a 720p H.264 fallback under 2 Mbps for reliable playback on cellular.
If autoplay still fails, test by triggering play on user interaction instead — a tap-to-play poster image. iOS specifically blocks programmatic play in some webview contexts but allows it on user gesture.
Still not working?
If the video plays in Safari but not in the TikTok webview consistently, route the viewer out of the webview to their default browser before the page loads. The video then plays in Safari or Chrome with their usual autoplay rules.
Want the full diagnosis? See TikTok in-app browser media handling explained.
Related help
- Form not submitting in TikTok browser
- PDF not opening from Instagram
- Cookies not persisting in Instagram browser
Need landing pages whose video plays reliably from TikTok? Start free on linkboo →