Copy link to clipboard
Copied
Couldn't find anything Googling... I'm loading a video file into a ByteArray and then needing to send the array over a socket to connected clients. The ByteArray is 30MB. Not having any luck simply doing a writeBytes to the socket. Is there a max to the size of the array that can be sent?
Copy link to clipboard
Copied
OK, found a little more info. Looks like I will need to first send the array size, then build the array from the received packets.
Copy link to clipboard
Copied
OK, found a little more info. Looks like I will need to first send the array size, then build the array from the received packets.
Exactly.
Copy link to clipboard
Copied
Finally got it working. Too bad only FLV files are supported with this method, but it'll work.
Copy link to clipboard
Copied
Feature#3844755 - [New_Feature_Requirement] NetStream.appendBytes() for H.264 (MP4) videos
Vote for this feature request if you are interesting in it.
Copy link to clipboard
Copied
Have this working but just tried with a 400+ MB video and within Flash I get a 1000 system out of memory error. Compiled AIR app sometimes loads the file, sometimes doesn't, and when it does it won't send. So... seems to be some limit to the size of the ByteArray after all. Is there a known limit? I couldn't find anything. 60MB files work fine... and my machine has 24GB of RAM so that shouldn't be a limiting factor.