在运用FMS录制视频时,假如出现这个错误,最直接的解决办法如下:

_netConnection.client = { onBWDone: function():void{ trace("onBWDone"); } };

不过也存在第二种解决办法:

_netConnection.client = this;

public function onBWDone(...rest):void
{
var p_bw:Number;
if (rest.length > 0){
p_bw = rest[0];
}
trace("bandwidth = " + p_bw + " Kbps.");
}

还有第三种解决办法:

_netConnection.client = new NetConnectionClient();
package
{
public class NetConnectionClient
{
public function NetConnectionClient()
{
} public function onBWCheck(...rest):Number
{
return 0;
} public function onBWDone(...rest):void
{
var p_bw:Number;
if (rest.length > 0){
p_bw = rest[0];
}
trace("bandwidth = " + p_bw + " Kbps.");
}
}
}

最新文章

  1. java多线程解读一(基础篇)
  2. ASP.NET使用Memcached
  3. oracle细节
  4. [译]git reset
  5. SQL_CURSOR_游标循环
  6. jquery 图片手风琴效果
  7. 解决安装 Visual Studio 2012 后无法连接VPN的问题
  8. 第十八篇 js高级知识---作用域链
  9. node.js 发送http 请求
  10. LightOJ1341 Aladdin and the Flying Carpet
  11. php函数 array_change_key_cash
  12. c# 设置MdiClient窗体的背景图片
  13. python网络编程(二)
  14. maven配置私服
  15. hive中sql使用英文分号
  16. NOIP2018 No regrets youth
  17. C# GDI绘制波形图
  18. oracle ORA-01722:无效数字 记录
  19. [Debug] Debug Node.js Application by using Chrome Dev tools
  20. 编程中的幂等性 — HTTP幂等性

热门文章

  1. 如何用github快速搭建个人博客
  2. GWAS Simulation
  3. HTTP、FTP状态码 (share)
  4. Lua table库整理(v5.1)
  5. (转) Spring框架笔记(二十五)——NamedParameterJdbcTemplate与具名参数(转)
  6. 【Android Studio快捷键】之代码提示
  7. U盘安装操作系统
  8. linux 公社的网友出品的 Qt5.5 安装脚本,copy过来了
  9. ORACLE 数据库 MOD 函数用法
  10. python 实现文件下载