Copy link to clipboard
Copied
There's a certain line of code in which I keep getting this error when trying to access a NetStream's info or soundTransform property, at least when using RTMP connections. The problem? It even happens when the NetConnection is successfully connected and has not lost its connection, but all the documentation says about it is that it "may be due to a failed NetConnection". What else could be causing the problem? Thanks.
are you checking for success of your netstream before trying to access its properties?
if you think you are, show your code. if you're not, fix that.
Copy link to clipboard
Copied
are you checking for success of your netstream before trying to access its properties?
if you think you are, show your code. if you're not, fix that.
Copy link to clipboard
Copied
Not the NetStream itself, just the NetConnection. Do I need to wait until I get NetStream.Connect.Success event back from the NetStream or something?
Copy link to clipboard
Copied
yes, exactly.
Copy link to clipboard
Copied
Great! I'm still sort of exploring the details of this, but it looks like there's a couple of events in which any of them would work. Thanks, man.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now