I’m creating an interactive SWF . When a user clicks on a hotspot it will play a video. The user will then click on another hotspot which will play another video behind it. There are about 10 steps so 10 videos will be required. I am using the NetStream Class to load and play videos. Problem is the typical behavior of the netstream class is that it loads in, buffers it slightly when you call its play function. What this results in with 10 consecutive videos is the possibility for a not so seamless interaction for the end user. Everytime the user clicked on a hotspot it would then need to load that particular video causing a potential waiting point. What i need is a way to Preload 10 videos on frame one and then use them as needed in the rest of the project. I am working in a browserless environment so the cache the files in the browser trick wont work. I’m not ready to jump to a “bulk loader” solution just yet.
The Netstream.play(address of video) command is what both loads and plays the video simultaneously. I can detect when its loading is 100% completed, but is there then a way to get the loaded flv out of the netstream class and store it in an object so that i can then load the next video and play them later? What im kind of looking for is for 1 netstream object loads 10 flvs 1 at a time and then stores them in some sort of object or byte array to then play them later without having to load. Is THIS even Possible??? Is it possible to get a hold of the information the netstream loads???
So far the only solution we have found is to embed all of the videos into the actual swf file. This however makes a somewhat large swf file.
Any help would be appreciated.