Flash As3流媒体播放器-onBWDone [英] Flash As3 Streaming player - onBWDone

查看:216
本文介绍了Flash As3流媒体播放器-onBWDone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试通过元信息实现流连接时遇到了这个错误

I got this error when tring to implement Stream connection with meta info

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value. at SS4uOpenplayer_fla::MainTimeline/frame2()

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value. at SS4uOpenplayer_fla::MainTimeline/frame2()

我像

meta.onBWDone=function(meta:Object){

}

meta.onMetaData = function(meta:Object)
{
}

但是仍然出现相同的错误

But stil am getting the same error

推荐答案

您必须在NetConnection实例上附加一个客户端"对象.客户端包含对必要的回调函数的引用.

You have to attach a "client" object on the NetConnection instance. The client contains references to necessary callback functions.

var nc:NetConnection = new NetConnection();

nc.client = { onBWDone: function():void{} };

这篇关于Flash As3流媒体播放器-onBWDone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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