This content has been marked as final. Show 1 reply
Anyone? I've been hitting this thing for over a week now and still
nothing. I've also tried streaming from other sites (FlashComm/Media
Server) and also no go. NetConnection doesn't try connecting. There is
no request made, no domain name resolution. The sequence of events is:
NetConnection.connect -> Rejected
There are no actions in between, no errors thrown, no errors broadcast.
Nothing to indicate that anything has gone wrong or that the address is
incorrect or that there is a security violation of some sort. Nothing at
all. I'm really out of ideas at this point...has anyone experienced this
and, if so, were you able to fix it (and how)?
Patrick B wrote:
> Hi everyone,
> I'm having an issue with NetConnection when trying to play back a
> streaming video and I'm hoping someone has had some experience with this
> problem. Basically I'm trying to stream videos from Akamai. I've been
> using Akamai for a number of months now and understand the entire edge
> server detection streaming thing. In Flash 8 I never encountered any
> issues. I've very recently started porting my code to ActionScript 3
> because I'm rewriting the player for Flash 9. Now, however, after
> detecting the edge server the NetConnection object simply rejects every
> connection I try to make. The exact info message is
> "NetConnection.Connect.Rejected". I wasn't sure if it was a security
> error (which isn't being thrown or broadcast) or if it's really a server
> thing, so I ran a web debugging proxy to watch traffic between my
> computer and the server. Oddly, Flash never attempts the connection to
> Akamai, it simply rejects the connection attempt. It doesn't try to
> retrieve a crossdomain XML file, doesn't throw any errors, doesn't
> broadcast any errors, or do anything else. Essentially, the .connect
> method simply results in a "NetConnection.Connect.Rejected" status event.
> I have read in a few different places that connections may be closed
> if there are too many being made (for example, FlashComm server with too
> many users). This is not the case; like I said, the connection is never
> even attempted. I also thought that it may be a security sandbox thing.
> I ran it on our testing site, locally, from a local web server, a
> variety of remote web servers....nothing. The same result came coming
> back. The player simply refused to attempt the connection. No
> crossdomain file was requested but other connections to the same server
> (like URLLoader) went through just fine. Other than the syntax
> differences and using URLLoader instead of LoadVars, there are no major
> differences between the Flash 8 video player and the Flash 9 video
> player. With Flash 8 I can see all the connections going through,
> requests for crossdomain files....the whole bit. With Flash 9, the
> NetConnection connect request simply does nothing; absolutely nothing.
> Incidentally, I've also tried this with progressive download videos
> (same code, just connecting to NULL) and they play fine.
> I have to admit I'm completely baffled. Does anyone have any ideas?
> Is this a bug with CS3 or am I doing something wrong? Has the "connect"
> method changed drastically between versions so that the same string
> parameter is no longer valid?
> Many thanks,
Faster, easier, better...ActionScript development taken to new heights.
Download the BNMAPI today. You'll wonder how you ever did without it!
Available for ActionScript 2.0/3.0.