PDA

View Full Version : Flash media server 3.5 help


revo999
08-12-2009, 08:39 AM
hello
i have installed flash media server 3.5 ..windows vista and using FLASH 10
right now in
Flash Media Server page I am only able to play HTTP sample,

RTMP file is not working , i check the sample folder >> and open HelloWorld

>> that shows error :: Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failed
at HelloWorld/connectHandler()

what should i do now

need ur help urgent

mr-webcam
08-12-2009, 09:08 AM
When you installed FMS did you install full with apache webserver ?
did you make sure ports were open (80,443,1935,1111) check firewall settings

revo999
08-12-2009, 10:59 AM
the apache is included with the flash media development server 3.5

i have already check the firewall , but problem is still there

mr-webcam
08-12-2009, 07:50 PM
It is difficult to see exactly what your problem is with so little detail
what connection string are you using similar to this ?
nc.connect("rtmp://my-server.com/application/");

revo999
08-13-2009, 08:08 AM
before running my application ( HelloWorld )

i always start FMS & FMAdministratorServer ( also checked in system services that they are running )

allow them in vista firewall

PLEASE LET ME KNOW

> is any problem with apache server ? how i figure out that it is running by FMS
> any port issues ?

package {
import flash.display.MovieClip;
import flash.net.Responder;
import flash.net.NetConnection;
import flash.events.NetStatusEvent;
import flash.events.MouseEvent;

public class HelloWorld extends MovieClip {

// Represents a network connection.
private var nc:NetConnection;

// Responder for call to server's serverHelloMsg -- see onReply() below.
private var myResponder:Responder = new Responder(onReply);

// Constructor.
public function HelloWorld() {
// Set display values.
textLbl.text = "";
connectBtn.label = "Connect";

// Register a listener for mouse clicks on the button.
connectBtn.addEventListener(MouseEvent.CLICK, connectHandler);
}

// When button is pressed, connect to or disconnect from the server.
public function connectHandler(event:MouseEvent):void {
if (connectBtn.label == "Connect") {
trace("Connecting...");
nc = new NetConnection();

// Connect to the server.
nc.connect("rtmp://localhost/HelloWorld");
// Call the server's client function serverHelloMsg, in HelloWorld.asc.
nc.call("serverHelloMsg", myResponder, "World");
connectBtn.label = "Disconnect";
} else {
trace("Disconnecting...");
// Close the connection.
nc.close();
connectBtn.label = "Connect";
textLbl.text = "";
}
}

// Responder function for nc.call() in connectHandler().
private function onReply(result:Object):void {
trace("onReply received value: " + result);
textLbl.text = String(result);
}

}
}

============

HelloWorld.asc

application.onConnect = function( client ) {
client.serverHelloMsg = function( helloStr ) {
return "Hello, " + helloStr + "!";
}
application.acceptConnection( client );
}

mr-webcam
08-13-2009, 05:45 PM
I think starting over is required here :)
create a folder in your FMS3.5 application directory called HelloWorld make sure permissions are set to read at least - restart your FMS server at this point.
next place you swf file HelloWorld and the two other files in a webfolder on your server and browse to that url
http://my-web-server/HelloWorld/HelloWorld.swf
and it should work

revo999
08-13-2009, 07:01 PM
nothing happened so far

when i load HelloWorld in FMSAdmin console

"Starting VOD Service...
Found wildcard (*) entry: disabling authentication of HTML file domains
Found wildcard (*) entry: disabling authentication of SWF file domains
...loading completed.
"

mr-webcam
08-13-2009, 10:12 PM
please Check your FMS core log files to see any error logs
and also confirm if you are using FMS3 Interactive server or FMS3 Streaming server.
Also please confirm that you have the following
adobe/fms/applications/HelloWorld and in this folder HelloWorld.asc
If your webserver is on another machine you should use either your domain name (without www) or IP address on this line
nc.connect("rtmp://my-domain.com/HelloWorld");

on your webserver in the same folder HelloWorld.swf and HelloWorld.as
If you have all this in place and you are running FMS3 interactive server just browsing to http://www.your-domain/your-folder/HelloWorld.swf should be working

just to prove the app works as i have said I have just copied the files to my server (editing the connection string for my server) http://www.mr-webcam.co.uk/HelloWorld/

revo999
08-14-2009, 11:09 AM
currently i am working on localhost, everything is fine but still not working
there is error in core file

core.01.log

#Fields: date time x-pid x-status x-ctx x-comment

2009-08-13 23:40:36 4692 (i)2581246 Core (4692) sending register cmd to edge. -
....
...
2009-08-13 23:59:07 5048 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: The parameter is incorrect. 87). -

#End-Date: 2009-08-14 00:58:34

=====================================
FMS.ini

SERVER.ADMIN_USERNAME = admin


SERVER.ADMIN_PASSWORD = xxxx

SERVER.ADMINSERVER_HOSTPORT = :1111


SERVER.PROCESS_UID =

SERVER.PROCESS_GID =


SERVER.LICENSEINFO =

LIVE_DIR = C:\Program Files\Adobe\Flash Media Server 3.5\applications\live

VOD_COMMON_DIR = C:\Program Files\Adobe\Flash Media Server 3.5\webroot\vod

VOD_DIR = C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod\media

SERVER.FLVCACHE_MAXSIZE=500

SERVER.HTTPD_ENABLED = true

ADAPTOR.HOSTPORT = :1935,80

HTTPPROXY.HOST = :8134


VHOST.APPSDIR = C:\Program Files\Adobe\Flash Media Server 3.5\applications


APP.JS_SCRIPTLIBPATH = C:\Program Files\Adobe\Flash Media Server 3.5\scriptlib



LOGGER.LOGDIR =


USERS.HTTPCOMMAND_ALLOW = true

revo999
08-14-2009, 11:17 AM
I used rtmpt and it worked!!!

"mr-webcam" thank you for your support

mr-webcam
08-14-2009, 04:06 PM
I am glad its working for you, enjoy FMS

revo999
08-17-2009, 11:41 AM
One more question

what should i need to upload this code to my website ??

do i need FMS install on hosting ? or just flash support is enough ?

mr-webcam
08-17-2009, 01:00 PM
You can put the swf and html on any website, you do not need to do anything special just make sure your conntection string is using the full ip address of your server