在 html4 中嵌入音频的最新技术是什么?

发布于 2024-09-14 03:51:29 字数 283 浏览 2 评论 0原文

我一直在努力寻找一个关于如何嵌入音频的最新技术的明确的现代来源,并且找到了许多关于 Flash 视频的最新信息,以及许多非常旧的和有问题的信息有关音频嵌入的文章(例如参考 IE 3.0)。也无法在 stackoverflow 或 doctype 上找到任何内容。

我正在用 html4 编写,所以显然虽然 html5 音频标签很棒,但它不是我的解决方案。

那么应该如何嵌入音频以最大化功能和浏览器支持呢?

我正在使用的特定文件是 midi 类型,尽管我认为这不会太重要。

I've been trying to find a definitive modern source for the state of the art in how to embed audio, and been finding lots of up to date info on flash video, and lots of really old and questionable articles on audio embedding (e.g. with references to IE 3.0). Also haven't been able to find anything here on stackoverflow, or on doctype.

I'm writing in html4, so obviously though the html5 audio tag would be great, it's not a solution for me.

So how should audio be embedded for maximizing features and browser support?

The specific file that I'm working with is a midi type, though I don't expect that's overly important.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温暖的光 2024-09-21 03:51:29

在 HTML4 中,最好的可能是 ,因为 在该版本中已被弃用。请参见例如通用包含:对象 元素。像这样的东西就足够了:

<object data="/path/to/audio.midi" type="audio/midi">
    <p>Fall-back text for browsers that can't handle the MIDI file.</p>
</object>

In HTML4, the best thing would probably be an <object>, since <embed> was deprecated in that version. See e.g. Generic inclusion: the object element in the HTML4 specs. Something like this would suffice:

<object data="/path/to/audio.midi" type="audio/midi">
    <p>Fall-back text for browsers that can't handle the MIDI file.</p>
</object>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文