通过 HTML 和 Javascript 进行音频流和语音录制

发布于 2024-10-04 05:47:41 字数 262 浏览 0 评论 0原文

我正在进行一个新项目,需要流式传输音频文件(mp3)并录制语音消息。当然,我的第一个选择是使用闪存。但问题是客户希望网站对 iPhone 友好。

有没有什么技术可以让我只用 javascript/php/xhtml 播放和录制语音消息?

当然,该网站应该与 firefox、safari、internet explorer 等完全兼容。

我用 google 搜索了一下,发现的所有内容都是基于 flash 的。

但如果您对此有任何线索,请告诉我。

I'm on a new project that requires to stream audio files (mp3) and record voice messages.. of course my first option was to use flash. But the problem is that the customer wants the website to be iPhone friendly.

Is there any technologie that allows me to play and record voice messages just with javascript/php/xhtml?

And of course, the website should be fully compatible with firefox, safari, internet explorer, etc.

I googled it and everything I found was flash-based.

but if you have any clue about it, please let me know.

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

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

发布评论

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

评论(2

清醇 2024-10-11 05:47:41

不,即使是最新的 HTML5 也没有任何录制音频的功能。您需要使用 Flash 或 Java - 但这就排除了 iPhone。

No. Not even the new-ish HTML5 has any features to record audio. You'd need to go through Flash or Java - but that would rule out iPhone.

英雄似剑 2024-10-11 05:47:41

如果你想录制声音,你应该使用新的 HTML5 的 api,你可以阅读更多相关信息
https://labs.ericsson.com/developer -community/blog/beyond-html5-audio-capture-web-browsers

然而,这是理论上的,实际上没有浏览器支持它,也没有办法做到这一点。简而言之:你不能按照你的要求去做。

您可以做的是为那些想要使用 iPhone 的人创建一个 iPhone 本机应用程序,并为那些想要使用常规浏览器访问它的人创建一个 Flash 网站。

if you want to record sound you should do it with the new HTML5's api's, you can read more about it on
https://labs.ericsson.com/developer-community/blog/beyond-html5-audio-capture-web-browsers

However, this is theory, in reality no browsers support it and there is no way to do it. So in short: you cannot do what you ask.

What you could do is create an iPhone native app for those who want to use iPhone, and a flash website for those who want to access it with a regular browser.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文