|
第一次连接FMS报错
第一次连接FMS(开发版,这个版本是免费的),照网上说的在applications目录下建立一个文件夹test,然后脚本中这样去连接: netConnection.connect("rtmp://localhost/test"); 日志中的错误赫然而至:
Tue 08:15:45 PM: Core (216) connection to admin accepted.
Tue 08:20:30 PM: (_defaultRoot_, _defaultVHost_) : Application (test) is not a valid signed application; loading access denied.
Tue 08:20:30 PM: (_defaultRoot_, _defaultVHost_) : Application (test/_definst_) is not a valid signed application; loading access denied.
Tue 08:20:30 PM: Connection rejected by server. Reason : [ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (test/_definst_) is not a valid signed application; loading access denied.
Tue 08:20:47 PM: Core (216) disconnected from edge.
Tue 08:21:00 PM: Core (5536) connection to admin accepted.
FMS安装后,在applications目录下本身就自带有live和vod两个应用程序,打开看看,readme.txt文件中就有这么一句:“Flash Media Streaming Server only
runs Adobe-built applications, also called "signed" applications.Flash Media Interactive Server and Flash Media Development Server support unsigned (user-created)
applications. If you\'re using one of these server editions, you can modify the vod service
source code to create your own applications. ”
netConnection.connect("rtmp://localhost/vod"); 连接成功!比较一下,vod目录下是有配置文件的。
看来主动去看看软件自带的文档还是很有用的,尤其是一些在国内目前还不太普及的技术,E文的原始文档就显得更重要了 |
|