I have a netConnection connected to a Flash Media Server. I am trying to use the new appendBytes function from Flash Player 10.1 to stream a local FLV file to FMS. I'm having issues however... Documentation I get online
// data is bytearray data from an already loaded FileReference object
TypeError: Error #2004: One of the parameters is invalid.
You can't use
appendBytes successfully when your stream's
NetConnection is connected to anything else than "null". From the documentation of
appendBytes method at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#appendBytes%28%29:
NetStreamfor playout. Call this method on a
NetStreamin "Data Generation Mode". To put a
NetStreaminto Data Generation Mode, call
NetStreamcreated on a
NetConnectionconnected to null. Calling
NetStreamthat isn't in Data Generation Mode is an error and raises an exception.
This almost certainly implies that what Adobe calls "Data Generation Mode" will not be available on a connection object connected to say, a Flash Media Server instance.