Search code examples
actionscript-3windows-server-2003flash-media-server

Flash Media Server 4-Netstream.Record.NoAccess error when trying to record video to server


We're trying to record video to a Flash Media Server using a NetConnection object and a NetStream in ActionScript 3. The Flash Media Server has been set up in a Windows 2003 Server environment.

Here's the code that we're using to send the webcam streaming video to the flash server:

ns = new NetStream(nc); //nc is an instantiated NetConnection object
ns.client = new CustomClient();
ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
if(media)
{
    ns.attachCamera(cam);
}
ns.attachAudio(mic);
ns.bufferTime = .1;
addEventListener(Event.ENTER_FRAME,vuMeter);
ns.publish("recording" + timestamp, "record");

When this script is executed, it connects to the server just fine, but it generates the following error message:

NetStream.Record.NoAccess

This seems like it could be related to a Windows directory permissions issue since we were able to connect to the server but not write a video to it. Unfortunately, we haven't dealt much with neither Windows 2003 Server nor Flash Media Server.

Any ideas for what might be causing this error/how to fix it?


Solution

  • The issue was not a permissions problem, but that we had the Flash Media Streaming Server installed. The 'Streaming' version only allows for reading from the server. In order to write to the server, we needed to install the Flash Media Interactive Server instead.