I have a CD with data and an application to view the data. The application uses an MCIWnd to play an AVI file as a splash screen while data loads. My problem is that after inserting the CD and executing the application, the video often is very jumpy. If the application is executed a second time, the video plays smoothly.
Before the splash screen is displayed, a login screen appears. I've already go the splash screen running in a secondary thread. What I'd like to do to keep the video from jumping is to utilize the time the user is on the login screen to begin preloading the video. What do I need to do to accomplish this.
So far, the two things I've tried are...
1. Hope to get the video file in the CD buffer by simply openning the AVI file and reading through it as a binary file. Seems to work... sometimes.
2. Call the function...
MCIWndSendString( m_hAVIWnd, "cue" );
...thinking that the "cue" command would possibly being preloading the video into MCIWnd memory. But again, this is meeting with limited success.