The Movie Player provides several playback options that allow flexibility in dealing with low-memory situations and performance problems. When working with the Movie Player API, keep in mind the following options:
Load referenced cast members |
|
Reduces memory consumption for some movie files. Increases the loading time, since the Movie Player must scan the score to determine which cast members are used. |
|
|
The movie file can contain unused cast members; without this option, the Movie Player loads all cast members regardless of whether they are referenced in the score. Specify the MMP_LOAD_REFERENCED flag with the mmpLoadFile function. See “Handling Movie Files,” later in this chapter, for more information. |
|
^ |
Omit image buffer |
|
Reduces memory consumption but degrades animation performance. Can cause flashing in movies that draw multiple bitmaps to the frames. |
|
|
By default, the Movie Player builds the frame in an off-screen buffer before displaying it on the stage window. Use this option only if there is insufficient memory to load the movie file. Specify the MMP_LOAD_NOBUFFER flag with the mmpLoadFile function. See “Handling Movie Files,” later in this chapter, for more information. |
, ^ |
|
Steal system colors |
|
Provides 18 more colors for the movie but reduces the rest of the system to black and white while the stage window is active. |
|
|
This option lets the Movie Player take over all but two of the twenty system colors, reducing the system colors to black and white while the stage window is active. Specify the MMP_LOAD_NOSTATIC flag with the mmpLoadFile function. See “Handling Movie Files,” later in this chapter, for more information. |
|
^ |
Use private device context |
|
Improves performance for some movies but uses more memory. |
|
|
By default, the Movie Player calls GetDC and ReleaseDC with most operations. Providing the alternate device context lets the Movie Player bypass this step, thus improving performance. Use the mmpSetDC function. See “Managing the Stage Window,” later in this chapter, for more information. |
|
^ |