Issue with pre-recorded stream
I'm looking to have a stream generated by FMS Interactive 3.5 from a large number of pre-recorded .flv videos. The videos need to start at a certain exact time, and need to play for an exact number of seconds. (ie, a video needs to start at 3:00:00 and play until 3:00:15, with another video starting at 3:00:15)
Right now I'm reading the filename to play and its start time from a database, and telling the stream to play that file at the retrieved time, for a certain number of seconds.
app.myStream.play(app.nextVideo.filename,0,vLength,0);
If I leave vLength at the default, the currently played video IS replaced with the next video, but there's several seconds delay for some reason (the server will switch to the video at 3:00:15, but the client wont start seeing the video until 3:00:19), so I've been setting vLength to the number of seconds that the video is supposed to play.
With vLength set properly, the problem I'm having seems to be related to the reset parameter. When set to 0, videos switch on time, but unless the client connects very shortly after the stream is started, the client's video will freeze at the end of the first video. When set to 1, clients can connect at any time and begin watching the stream, but there's a buffering period at the beginning of each video, which throws the timing off.
I've been tearing my hair out over this, and can't seem to find a solution to get videos to start playing for the client at their exact scheduled times. Any assistance would be greatly appreciated.
