[AS3.0] Error #2044: 未处理的 NetStatusEvent:。 level=error, code=NetStream.Record.NoAcces 解决办法...
突然又需要FMS做视频录制,却遇到一些意想不到的问题,我在想当年做的时候怎么没遇到。。。
报错:
Error #2044: 未处理的 NetStatusEvent:。 level=error, code=NetStream.Record.NoAcces
问题原因:
查资料发现,居然FMS在默认情况下不允许record文件到服务器,必须要进行设置,在服务器端的应用程序文件夹(默认位置在<FMS_Installation_Dir>/applications/live),在这个文件夹下面有一个main.far,main.far是个压缩文件(可以用winrar解压),解压后里面有两个文件main.asc 和 Application.xml, 打开Application.xml,代码如下:
<Application><SharedObjManager><ClientAccess override="no">false</ClientAccess></SharedObjManager><StreamManager><StreamRecord override="no">false</StreamRecord></StreamManager></Application>
默认是SharedObject远程共享对象和StreamRecord录制都不允许。
修改Application.xml如下:
<Application><SharedObjManager><ClientAccess override="yes">true</ClientAccess></SharedObjManager><StreamManager><StreamRecord override="yes">true</StreamRecord></StreamManager></Application>
除此修改之外还要修改main.asc
打开main.asc,找到以下函数:
application.onConnect = function( p_client, p_autoSenseBW ) {// Check if pageUrl is from a domain we know. // Check pageurl// A request from Flash Media Encoder is not checked for authenticationif( (p_client.agent.indexOf("FME")==-1) && (p_client.agent.indexOf("FMLE")==-1)){// Authenticating HTML file's domain for the request :// Don't call validate() when the request is from localhost // or HTML Domains Authentication is off.if ((p_client.ip != "127.0.0.1") && application.HTMLDomainsAuth && !this.validate( p_client.pageUrl, this.allowedHTMLDomains ) ){trace("Authentication failed for pageurl: " + p_client.pageUrl + ", rejecting connection from "+p_client.ip);return false;}// Authenticating the SWF file's domain for the request :// Don't call validate() when the request is from localhost // or SWF Domains Authentication is off.if ((p_client.ip != "127.0.0.1") && application.SWFDomainsAuth && !this.validate( p_client.referrer, this.allowedSWFDomains ) ){trace("Authentication failed for referrer: " + p_client.referrer + ", rejecting connection from "+p_client.ip);return false;}// Loggingtrace("Accepted a connection from IP:"+ p_client.ip + ", referrer: "+ p_client.referrer+ ", pageurl: "+ p_client.pageUrl);}else{// Loggingtrace("Adobe Flash Media Encoder connected from "+p_client.ip);}// As default, all clients are disabled to access raw audio and video and data bytes in a stream // through the use of BitmapData.draw() and SoundMixer.computeSpectrum()., Please refer// Stream Data Access doccumentations to know flash player version requirement to support this restriction// Access permissions can be allowed for all by uncommenting the following statements//p_client.audioSampleAccess = "/";//p_client.videoSampleAccess = "/"; this.acceptConnection(p_client);// A connection from Flash 8 & 9 FLV Playback component based client // requires the following code.if (p_autoSenseBW)p_client.checkBandwidth();elsep_client.call("onBWDone");}
打开以下注释:
//p_client.audioSampleAccess = "/";//p_client.videoSampleAccess = "/";
如果想允许SharedObject远程共享对象,可以加上以下代码:
p_client.writeAccess = "/";
然后将修改后的文件重新打包mian.far,替换原来的,重启FMS服务器即可。
转载于:https://www.cnblogs.com/frost-yen/p/6241952.html
[AS3.0] Error #2044: 未处理的 NetStatusEvent:。 level=error, code=NetStream.Record.NoAcces 解决办法...相关推荐
- Adobe Flash player 10 提示:Error#2044:未处理的IOErrorEvent. text=Error#2036:加载未完成 的解决方法
Adobe Flash player 10 提示:Error#2044:未处理的IOErrorEvent. text=Error#2036:加载未完成 的解决方法 参考文章: (1)Adobe Fla ...
- 【转】error while loading shared libraries: xxx.so.x 错误的原因和解决办法
原博客地址:http://www.cnblogs.com/Anker/p/3209876.html#undefined error while loading shared libraries: xx ...
- yum 更新内核报错 “Error: initscripts conflicts with centos-release-7-0.1406.el7.centos.2.3.x86_64的解决办法
yum 更新错误 "Error: initscripts conflicts with centos-release-7-0.1406.el7.centos.2.3.x86_64″的解决办法 ...
- 使用FindControl出现未将对象引用设置到对象的实例 错误的解决办法
使用FindControl出现未将对象引用设置到对象的实例 错误的解决办法 经过一番搜索,在forums.asp.net中找到了答案,以下引用的是bitmask的说法: ...becasue the ...
- mysql8 10061_MySQL8.0报错Can't connect to MySQL server on 'localhost' (10061)的解决办法
MySQL8.0报错Can't connect to MySQL server on 'localhost' (10061)的解决办法 事情的起因 今天课堂上要展示小组项目,需要用一个软件叫WPS-I ...
- 关于 MySQL5.7.log 版本导出 SQL 语句再导入 8.0.13 版本出现 Incorrect datetime value: ‘0000-00-00 00:00:00‘ 错误的解决办法
环境配置 导出数据库版本:5.7.12.log 导入数据库版本:8.0.13 问题: 导出 SQL 脚本,再在高版本数据库中导入时,出现 Incorrect datetime value: '0000 ...
- Hbase出现ERROR: Can‘t get master address from ZooKeeper; znode data == null解决办法
问题描述如下: hbase(main):001:0> list TABLE ERROR: Can't get master address from ZooKeeper; znode data ...
- ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
这个解决办法是我根据网上一系列的方法准备突然成功的,所以我想可能是由于本身其不稳定造成的 首先,我在官网上下载了mysql文件,这个网上随便找都能找到怎么下载的 然后打开文件后,发现没有my.ini ...
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file解决办法
一.问题背景 CentOS6.5利用yum命令安装程序报错YumRepo Error: All mirror URLs are not using ftp, http[s] or file.Eg. I ...
最新文章
- 如何获取HTML元素对应JavaScript对象?
- vSphere+Openfiler备忘录
- 15年IT研发老兵的困惑,生存与生活的状态
- uvalive4838(凸包+重心)
- Java高级 —— 泛型
- 带有Prometheus的Spring Boot和测微表第6部分:保护指标
- 双三次插值图像旋转_4K/8K电视中的超分辨率技术到底是啥?让我来告诉你(二-插值篇)...
- 在linux底下用pip安装mysqlclient错误解决办法
- B - Cube HDU - 1220 (数学计数)
- python中利用pygame模块输出文字
- 关于冯乐乐《Shader入门精要 》书中基础纹理一章的一些笔记
- 关于tb jd等电商平台抢购的解决方案
- 机器人、控制领域顶级期刊
- 微信小程序周记(第一周 7.19-7.25)
- 电脑调分辨率黑屏了怎么办_调显示器分辨率黑屏怎么办
- 西游记中唐僧师徒的不同性格
- 课程学习方案——python(1)
- 百度网盘加速无限试用_百度网盘上线 单日/单次 加速功能,最低仅需 2 块钱
- SSL数字证书认证的过程
- java物联网第二天 感悟下
热门文章
- 小程序项目:基于微信小程序的劳务咨询系统设计与实现—计算机毕业设计
- C语言sizeof()和strlen()
- 如何恢复华为手机中丢失的通讯录(使用时光机)
- transform 、transition、animate动画
- 新款奔驰GLE350小改一下AMG中网,超大的变化更显年轻运动
- Initialization script ‘C:\Users\darren\AppData\Local\Temp\sync.studio.tooling18332.gradle‘
- 华为荣耀7能不能升级成鸿蒙系统,荣耀手机不能升级鸿蒙了?博主给出升级名单...
- sql查询:单表、多表、左连接、外连接、高级查询
- python处理杂乱无章的文本
- 一名95后域名投资人从一穷二白到月入过万的历程