惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
P
Proofpoint News Feed
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
美团技术团队
D
Docker
博客园 - Franky
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

tanscp

科学驾驭你的身体电量 (Body Battery) - tanscp Code Block Features Showcase 通俗易懂的解释什么是Agent - tanscp i18n in a Static Next.js Blog: Client-Side Toggle vs URL-Based Routing Syntax Highlighting Mathematical Notation Visuals and Diagrams System Architecture 101 Syntax Highlighting Showcase 中文测试文章 Part 2: Routing Mastery Part 1: Getting Started with Next.js 15 多语言测试并且要测试以下超长的标题看如何处理,如果太长的话要考虑方案: Amytis Digital Garden The Kitchen Sink: Comprehensive Feature Test Mac 菜单栏武装计划:10 款免费开源的宝藏 App 推荐 Markdown Features Test Nested Image Test Legacy Markdown Support Asynchronous JavaScript QuickSort: An Algorithmic Deep Dive README Index Post Deeper Notes 在一个被屏幕和算法全面包围的时代,我们正逐渐失去对“注意力”的主权 - tanscp AI 是如何识别一只猫的?——图解神经网络的秘密 - tanscp 什么是真正的自我?它真的存在吗? - tanscp AI洞察从你的笔记中读出了什么? - tanscp 我尝试空腹有氧一个月后 - tanscp ISSUE 026 | 数独事件 - tanscp ISSUE 025|你喜欢哪个版本的自己? - tanscp ISSUE 024|认知失调 - tanscp
Multimedia Showcase: Video, Podcasts & Embeds
John Hu · 2026-02-20 · via tanscp

This post tests how Amytis renders multimedia content embedded via raw HTML iframes and native HTML5 media elements. Since rehype-raw is enabled, standard HTML embed codes work directly inside Markdown.


YouTube Video

Responsive 16

YouTube embed using a padded wrapper:

"Me at the zoo" — the very first video uploaded to YouTube (April 23, 2005).


Vimeo Video

Vimeo also supports responsive 16

embedding:

Big Buck Bunny (2008) — open-source animated short by the Blender Foundation.


Podcast Embeds

Spotify Podcast

Spotify provides a fixed-height iframe embed for individual episodes:

You can also embed the full show player at a taller height (352px) to show the episode list:

Apple Podcasts

Apple Podcasts uses a similar iframe embed pattern:


Livestream Embeds

YouTube Live

A YouTube Live channel or active live video can be embedded exactly like a regular video. Use the channel's live URL (/live) or a live event ID:

Below is NASA's public live stream:

Twitch Stream

Twitch requires your site's hostname in the parent query parameter (so the embed works in production):

Twitch also supports embedding past broadcasts (VODs) and clips:


Native <video> and <audio> elements work without any third-party embeds.

HTML5 Video

<video controls style="width: 100%; border-radius: 12px; margin: 1rem 0; background: #000;" poster="https://peach.blender.org/wp-content/uploads/title_anouncement.jpg"

Your browser does not support the HTML5 video element.

Elephants Dream (2006) — first open-source animated film by the Blender Foundation.

Attributes you can use:

AttributeDescription
controlsShow playback controls
autoplayStart playing automatically (use with muted)
mutedMute by default (required for autoplay)
loopLoop the video
posterPreview image shown before play
preloadauto | metadata | none

HTML5 Audio

<audio controls style="width: 100%; margin: 1rem 0;"

Your browser does not support the HTML5 audio element.

SoundHelix royalty-free sample track.

Multiple formats improve cross-browser support:


Audio Platforms

SoundCloud

SoundCloud exposes an iframe embed from any track's "Share → Embed" menu:

The full visual player (300px height) shows the waveform:

Bandcamp

Bandcamp provides both album and track embed codes:


Embed Best Practices

When embedding third-party media, keep these in mind:

  • Responsive sizing: Wrap iframes in a padding-bottom: 56.25%; position: relative container to maintain 16 ratio.
  • loading="lazy": Add this to below-the-fold embeds to defer loading and improve page speed.
  • title attribute: Always provide a descriptive title for screen reader accessibility.
  • Privacy-enhanced mode: YouTube supports youtube-nocookie.com to reduce tracking when embeds don't auto-play.
  • allow over allowfullscreen: Use allow="fullscreen" instead of the deprecated allowfullscreen boolean attribute. Note that bare allow="fullscreen" restricts fullscreen to the iframe's own origin (more secure), whereas the legacy allowfullscreen was equivalent to allow="fullscreen *" (any origin). For third-party embeds like YouTube or Vimeo, allow="fullscreen" is the correct and preferred form. When both attributes are present the browser warns that allow takes precedence.
  • sandbox attribute: Use for untrusted embeds to restrict what the iframe can do.
  • Twitch parent parameter: Twitch requires your site's hostname in parent for embeds to work outside localhost.