Media Server :: NetConnection Using POST Requests To Retrieve Data?
Aug 20, 2010
I've noticed that when I use NetConnection.call(methodName) in my client Actionscript it sends a POST request off to the server. I thought this was odd because requests for data are normally GET operations but I didn't worry about it because it doesn't impact my applicationow I have our sysadmin complaining about the amount of data I'm shifting over POST requests because POST requests aren't cached by the web servers (and we are working with the kind of traffic levels where that matters.) Is there anyway I can make call() use GET?The code I'm using is all fairly standard, but here is the relevant snippit:
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
[code]......
View 1 Replies
Similar Posts:
Dec 22, 2011
In an asc file, I am trying to retrieve some data from a server that uses JSON as its exchange format each time someone connects to a specific application. ( I can't control the exchange format)To do that I send a POST using the sendAndLoad method of a LoadVars ObjectSo far I only managed to get the HTTP header. The target object from the sendAndLoad method seems to be empty .he response format from the server is like this :{"result":{"uid":"24947431041778945007157724608309","sid":"20825068196 030559827758762683967"} (I got it by doing a POST with cURL)ince the data doesn't have the attribute=value&attribute2=value2..."format, I think I will not be able to get themoes anyone know if it is possible to first get and then parse these data using either ServerSide ActionScript's API
View 1 Replies
Jan 13, 2010
I'm trying to troubleshoot a Flash Media Server working with a little video playback application I wrote a few years ago that has suddenly stopped working.I'm using CS3/Actionscript 3.My app uses the FLVPlayback Component, and was working well last time I checked. I recevied a report that the videos stopped working, and have been looking into it.I figured I'd add a bunch of event listeners to the FLVPlayback's ncMgr.netConnection so I could get debug info on things like io errors, net status, etc.The problem I'm running into is that the netConnection is null when I set it to anything on my Flash Media Server, and adding any event listeners to this netConnection throws errors.Here's what I've tried so far:
Playback of a local FLV file works fine.In the FLVPlayback documentation, I found an example and stole the URL of the stream they were using in the example, and that works fine, although it is an HTTP protocol stream rather than RTMP.Any attempt to access FLV files on my Media Server, which has worked fine in the past, basically cause the FLVPlayback object to sit and hang in "buffering" mode and never progresses beyond this point.The netConnection object in this case is null.Here's my code:[code]........
Again the purpose of this is to troubleshoot the video streaming from the Flash Media Server, and it seems like there is no netconnection to the server being created.Does this mean that the server is not working, or is there a problem with the way I'm trying to access the content on the server?This was all working fine before, and I have set up the server-side application .ASC files and such to allow things to work fine on the server end.
View 6 Replies
Oct 31, 2011
setPublishPassword and setPostingPassword ?I do not quite understand, do not use an example.I set him groupspecWithOutAuthorizations, but was illegally set to groupspecWithAuthorizations how to do.
View 4 Replies
Oct 5, 2010
I have a web page with a button that does a redirect to another web page with a flash movie in it. The button on the first page sends http post data as part of it's functionality.
View 1 Replies
Sep 27, 2010
I'm using the RTMFP protocol to publish and play video and audio, but i'm with a little problem. I installed the FMS 4 Development Server in a Windows Server machine located in our local network and it works perfectly. In order to deploy our application, we have a remote server with a fresh install of the Ubuntu 10.04 Server, and the FMS 4 installed in this server. In other server we have the Java and Flex application, which will be used in the client browser.
The problem is that when trying to change the NetConnection url to the remote FMS server, which is the Ubuntu server, the netconnection can't connect to it. When changing to the RTMP protocol it connects, but with the RTMFP don't. I can't find any information in the log files or anything else.
View 9 Replies
Mar 19, 2012
I need to configure FMS server so that it will listen to only RTMP request and disable other services like HDS and PLD. What configuration is required for this arrangement?
View 1 Replies
Jun 10, 2009
I think I'm getting closer to the source of my problem.Let me outline my setup first (I'm using private IPs for example only). I have set two IP addresses to one network adaptor as follows:
CentOS 5.3 server running Apache 2.2.3 on eth0 with IP 192.168.0.78 <- working fine absolutely no problems at all
FMS 3.5.2 running Apache bundled with FMS on eth0:2 with IP 192.168.0.79
In fms.ini I have the following config:
ADAPTOR.HOSTPORT = 192.168.0.79:1935,80
HTTPPROXY.HOST = 192.168.0.79:8134
At (apparently) random times, the FMS Apache stops serving requests, but does not crash, and for some reason blocks requests to RTMP at the same time. Nothing appears in the log files which makes this even more tricky.I've run a test by shutting down apache as follows:
./httpd -f ./conf/httpd.conf -d "/opt/adobe/fms/Apache2.2" -k stop
and I expected RTMP to stop working aswell, however it continued serving up RTMP, which has led me to believe that something is then stalling the serving up of RTMP requests. This results in total downtime of all applications.
View 36 Replies
Nov 30, 2010
[URL]
I followed the above example in AS2,but only get the error:
Call to a possibly undefined method getNetConnection through a reference with static type fl.video:INCManager.Here's my code: this.addEventListener(Event.ENTER_FRAME,
[Code].....
View 5 Replies
Dec 13, 2010
I need a solution for this: when the port 1935 is closed, the NetConnection switch rtmpt (port 80). The NetConnection class built in function: proxyType="HTTP" not works or I use not rightly.In the FLVPlayback class works this function, but I don't know how..
View 7 Replies
Jun 30, 2011
i m new for FMS I just wanna make a connection, I put swf file in FMS folder and here my codepackage{ import flash.net.NetConnection; import flash.display.Sprite; importflash.text.TextField; import flash.events.NetStatusEvent;public class main extends Sprite private var
View 3 Replies
Aug 22, 2011
Can anyone tell me why I would not be getting Netconnection.NetworkChange and Netconnection.Closed events would not be getting fired when I am working on Flash CS5?
I get the Success event, but when I am attempting to test my reconnection code I pull out my network cabled and I never get the closed event.
Interestingly, I do get the Closed and NetworkChange events when I am debugging, but not when I just run the movie.
View 7 Replies
Nov 23, 2009
I have FMS 3.5.2 installed on a VMWare CentOS image running under OS X. I have the CentOS IP mapped to the host "fms.vm" on both the host (OS X) and CentOS machine and can access the FMS Admin just fine, either via a browser on OS X or a browser on CentOS. No problem there.
[Code]...
View 3 Replies
Jun 23, 2010
Would I be able to send a image using NetStream or NetConnection?
View 1 Replies
Aug 19, 2010
Am publishing a live stream from server to server per:I noticed that about every 10 minutes or so the stream would seem to go down.n instance there is unloaded every 10 minutes like clockwork. Message reads "Instance _definst_ is shutdown by the script... Unloaded application instance _definst_." This is preceeded by the"NetConnection.Connect.IdleTimeOut" message.During the 10 minutes inbetween, the stream displays fine on the viewer.The live docs say this message means "the publisher of the stream is idle and not transmitting data
View 6 Replies
Aug 19, 2010
I am getting "NetConnection.Connect.Failed" error when trying to connect to my FMS 3.5 server from Internet.Things work pretty well when the application is hosted and accessed on my local network. Now when I want to connect my live stream application to Internet it isn't working. Public IP for my server is of type xxx.xxx.xxx.xxx:xxxx (My machine is mapped to the ip so to connect I need to mention the port as well).I am running IIS and FMS on the same machine. I have changed the default tcp/ip port of iis to 8080 and the ports for FMS are set to 1935,80.I have updated the HTTPPROXY.HOST value in fms.ini to HTTPPROXY.HOST = :8080 (port of IIS)HTTP tunneling and HTTP Proxy are also enabled.
View 1 Replies
Sep 25, 2010
I have a swf running within a web browser and publishing audio stream to the server. If the client's computer has a firewall, should it be configured for outgoing etconnection.connect() request?
View 1 Replies
Apr 7, 2011
Both NetConnection object and NetStream object has a client property. Can I use the same client for both objects?
View 1 Replies
May 29, 2011
Let's say user A connected to the FMS server with an RTMFP NetConnection, and user B connected to the server with an RTMP connection. If I want to connect them together, would it be better if I also connect A to an RTMP NetConnection to the server?
View 4 Replies
Jul 7, 2011
I'm creating a very, very basic AIR application which mainly just needs to check if a given FMS is up and running. To do that, I'm simply connecting to the FMS and after a successful connection, disconnecting to free up the connection slots. All is repeated at some interval. This is like a monitoring tool.
However, looking into the admin panel (Influxis) I can see that the number of active connections is ever growing, even though I'm calling close() on the NetConnection instance every time.
Also, adding a timer to trace the netConnection.connected value outputs always "true", after the close() function has been called.
I'm not creating any NetStreams, nothing.
View 6 Replies
Sep 22, 2009
If I'm streaming live video and chatting in an FMS app, should each component have its own instance of NetConnection or should they share one? Was thinking perhaps the quality of the live video stream would be hurt in a sharing situation but am not sure the architecture works like that.
From a development standpoint, I'd like to make one NetConnection instance in my main application file and connect with it. Then, when successfully connected, I'd like to pass that connection into any custom components that need it.
View 14 Replies
May 11, 2011
I have a single server that runs IIS and FMS, both on port 80. The server has two internal IPs assigned to it, one for IIS and the other for FMS. I also have two static public IPs. My router maps one public IP to IIS' internal IP and likewise for FMS.
IIS works fine. Using an online port scanner, I was able to determine that port 80 is responsive for both public IPs. Before I had configured my Adapter.xml and fms.ini, only IIS' public IP was responsive. This seems to indicate that FMS is fine.
However, when my ActionScript creates a NetConnection and calls connect(), my netStatus callback takes about half a minute to be invoked, and I get "NetConnection.Connect.Failed". Which is not very informative. Is there a way to get more info about the cause of the error?
View 1 Replies
Jun 9, 2010
today I install fms3.5 on my pc.
1)I can use rtmp://localhost/vod/mp4:sample2_1000kbps.f4v , it works ok. But when I use rtmp://192.168.8.3/vod/mp4:sample2_1000kbps.f4v, I got Netconnect.connection.rejected. 192.168.8.3 is my fms server IP.
2)When I set fms use port 1935 and 80, rtmp://192.168.8.3/vod/mp4:sample2_1000kbps.f4v works ok on other pc. But using wireshark(Wireshark is a network protocol analyzer for Unix and Windows.) I found , the flash player connect 1935 port at first, it send "connect",the server replay "connection.rejected" and "no scope "vod" on this server". Than it connect to 80 port, so I see the video is not send throw 1935 port with rtmp, but throw 80 port with rtmpt. Why? How can I see video throw rtmp?
View 9 Replies
Jan 1, 2011
I have a big issue with FMS 3.0 and specially with netconnections. Sometimes, when one client closes its netconnection, all the other clients of the FMS are also disconnected automatically. I am trying to find an explanation but nothing... It seems to be a bug as, most of the time everything works very well, but sometimes (not often) this strange behaviour happens. I don't know what to do and it's really annoying as it affects the reliability of my application.
View 10 Replies
Aug 7, 2009
A client connected to the FMS for playing live video.The problem has been found that when FMS shutdown the network, the client's NetConnection didn't dispatch any event.But when the client shutdown the network the client's NetConnection will dispatch NetConnection. Connect.Closed event.How could flash client know the FMS' server side networking problem? Does it necessary to use heartbeat mechanism between FMS and client?
View 1 Replies
Jun 7, 2011
function Function() {}Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value. at MinCam()
[Code]...
View 17 Replies
Apr 7, 2010
How to retrieve fms bandwidth into flex?
View 2 Replies
Mar 25, 2009
How to retrieve fms bandwidth into flex?
View 1 Replies
Jul 22, 2010
I'm trying to make a software which sends video and audio data to a flash media server by using RTMP protocol. Currently, my program can communicate with a flash media server correctly. RTMP specifications does not describe about the raw data in video/audio messages, so I muxed raw H.264 and AAC data into video/audio messages and sent to the server. The server seems to accept them, but a video player cannot playback the stream sending from the server. The player just says "Loading..." For a test purpose, I sniffed the network packets between Wirecast and the flash media server and ripped off only video and audio data. Then, I muxed those data into video/audio message and sent to the flash media server. In this case, the video player connected to the server can playback the stream correctly.
I checked the stream sent from Wirecast, the stream seems not to be H.264 raw data because those data are not started from 0x17 instead of H.264 start code. With those situation, I am wondering what kind of container format I should use for H.264/AAC data to the flash media server.
View 12 Replies
May 18, 2010
I am trying to retrieve a stock quote from Yahoo! finance using Flex. I currently have it set so that it will pull the quote like I want, but it opens it in a new file. However, I want to store the CSV data in a variable so that I can use it in my program.
How do I do this?
Here is the code that I am using right now:
navigateToURL(new URLRequest("http://download.finance.yahoo.com/d/quotes.csv?s=aapl&f=l1"),"_self");
View 3 Replies