Depending on the size of the movie you are looking at streaming, I wouldn't try to save all of it to a variable. While I do not do any programming with regards to video, I would highly suggest that when you stream it, you buffer it, simply so that you do not have a single variable that is holding a ridiculous amount of data (which will, undoubtedly, chew up your RAM). Buffer it into chunks, and when you buffer is full, dump the buffer to an opened file stream.
|