关于computeSpectrum()和RTMP
只是想问一下,是否可以从 RTMP 服务器流式传输的数据创建声谱?
我读了这个 computeSpectrum< /a> 并显示
“此外,此方法不能用于从 RTMP 流中提取数据,即使它被与 RTMP 服务器位于同一域中的内容调用也是如此。”
我不会使用 FMS,所以它仍然是不可能的。是否有任何可用的 php 和服务器或其他黑客?
Just wanted to ask, is it at all possible to create sound spectrum from the data that RTMP server streamed?
I read this computeSpectrum and it says
"In addition, this method cannot be used to extract data from RTMP streams, even when it is called by content that reside in the same domain as the RTMP server."
I will not be using FMS so it stays inpossible. Are there any available hacks with php and the server or whatever?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
因此,经过搜索,我得到了答案,答案是 Flash 本身和 ActionScript3 没有任何黑客攻击,即除非您使用 FMS 服务器的客户端 API,否则您无法访问来自 RTMP 服务器的声音流的原始声音数据。
我尝试使用 apache 作为带有 php 的流媒体服务器来进行 HTTP 流式传输,但不能使用 Sound AS3 对象进行流式传输,而只能加载声音文件。而且声音无法播放 flv,这是我唯一的选择。
但是,如果您使用 Microphone 类从麦克风获取字节,并将它们发送到 NetStream 对象以进行流式传输并使用 SoundMixer.computeSpectrum() 进行绘制,那么是的,但我不允许使用 Mic :(
可用的解决方案是假声波
谢谢。
So, after searching I got to an answer and the answer is that there are no hacks with flash itself and actionscript3, i.e you cannot access raw sound data from sound streamed from RTMP server unless you use Client API for FMS server.
I tried with HTTP streaming using apache as a streaming server with php but you cannot use Sound AS3 object to stream, just to load sound file. And also Sound cannot play flv which is my only choice.
If however you use Microphone class to get bytes from the mic, and send them to NetStream object to stream and also to draw with SoundMixer.computeSpectrum(), than yes, but I am not allowed to use Mic :(
Available solutions would be to fake the sound wave.
thanks
在您从中获取流媒体的 fms 流媒体室中,将这些代码添加到 main.asc 文件中,
我在点播应用程序上尝试过它,它将在其他应用程序上工作,它提供快照(bitmap.draw())和音频频谱捕获(soundmixer.asc)。 computespectrum()),它删除了安全异常
祝你好运
in fms streaming room that you get the streaming from, add these codes to main.asc file
i tried it on vod application, it will work on others, it gives both snapshot(bitmap.draw()) and audio spectrum capturing (soundmixer.computespectrum()), it removes the security exeption
good luck