视频流抛错“ text=Error #2095: flash.net.NetStream 无法调用回调 onLastSecond”

遇到过这样的错误:

Error #2044: 未处理的 AsyncErrorEvent:。 text=Error #2095: flash.net.NetStream 无法调用回调 onLastSecond。 error=ReferenceError: Error #1069: 在 NetStreamMetaDataFilter 上找不到属性 onLastSecond,且没有默认值。
at tudou.videoModule::BaseHTTPPlayer/createNetStream()
at tudou.videoModule::BaseHTTPPlayer/resetNetStream()
at tudou.videoModule::BaseHTTPPlayer/ncConnectSuccessHlr()
at tudou.videoModule::BaseHTTPPlayer/onStatusHlr()
at tudou.videoModule::AdvancedHTTPPlayer/onStatusHlr()
at flash.net::NetConnection/connect()
at tudou.videoModule::BaseHTTPPlayer/createNetConnection()
at tudou.videoModule::BaseHTTPPlayer/reset()
at tudou.videoModule::AdvancedHTTPPlayer/reset()
at tudou.videoModule::BaseHTTPPlayer/init()
at tudou.videoModule::AdvancedHTTPPlayer/init()
at tudou.videoModule::BaseHTTPPlayer()
at tudou.videoModule::AdvancedHTTPPlayer()
at tudou.centralModule::CentralControllerForMain/addVideo()
at tudou.centralModule::CentralControllerForMain/addContent()
at tudouPlayer/loadSkinCompleteHlr()
at Function/http://adobe.com/AS3/2006/builtin::call()
at tudou.tools::SWZLoaderHelper/callTargetFn()
at tudou.tools::SWZLoaderHelper/completeHlr()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.tudou.rsl.net::SWZLoader/loadedHandler()

 

错误类型:

NetStream的 AsyncError

解决方案:

1. 

class NetStreamMetaDataFilter extends Object{

public function onLastSecond(info:Object):void

{
}

public function onMetaData(info:Object):void
{
}
}

 

netstream.client = new NetStreamMetaDataFilter;

 

2.

netStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, netStreamAsyncErrHlr)

posted on 2013-05-28 13:59  alvin.zhang  阅读(352)  评论(0编辑  收藏  举报

导航