AS3:在NetStream音频活动水平 [英] AS3: Audio activity level of a NetStream

查看:116
本文介绍了AS3:在NetStream音频活动水平的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拉我的头发(再次),试图找到一种方法来读取音频与NetStream,类似于对如何用麦克风做的活动水平。我讨厌不得不让每个客户端发送的activitylevel通过共享对象或类似的,它的权利似乎是真正得到它的工作的唯一办法。

I'm pulling my hair out (once again), trying to find a way to read the activity level of audio of a NetStream, similar to how you can do it with a Microphone. I'd hate to have to let each client send it's activitylevel through SharedObjects or the like, which right seems to be the only way to actually get it to work.

在此先感谢这么多!

戴夫

推荐答案

在AS3 NetStream对象有一个名为.INFO财产。这适用对象返回NetStreamInfo。返回NetStreamInfo会给你各种指标。其中之一是房地产audioBytesPerSecond',这将给你的声音活动的指示,在一个特定的时间点。请求为返回NetStreamInfo输入流将为您提供来自客户端的数据。请求为返回NetStreamInfo的输出流将为您提供从自己的凸轮和话筒活动数据。 NetStreamInfo对象的更多细节可以在这里找到:<一href="http://help.adobe.com/en%5FUS/AS3LCR/Flash%5F10.0/flash/net/NetStreamInfo.html">http://help.adobe.com/en%5FUS/AS3LCR/Flash%5F10.0/flash/net/NetStreamInfo.html

In AS3 the Netstream Object has a property called .info. This holds the object NetStreamInfo. NetstreamInfo will give you all sorts of metrics. Among them is the property 'audioBytesPerSecond' which will give you an indication of the audio activity at a certain point in time. Requesting the NetStreamInfo for the incoming stream will provide you with the data from the client. Requesting the NetStreamInfo for the outgoing stream will provide you data from your own cam and mic activity. More detail on the NetStreamInfo object can be found here: http://help.adobe.com/en%5FUS/AS3LCR/Flash%5F10.0/flash/net/NetStreamInfo.html

这篇关于AS3:在NetStream音频活动水平的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆