MCGetControllerInfo
Your application can use theMCGetControllerInfofunction to determine the current status of a movie controller and its associated movie. You can use this information to control your application's menu highlighting.
pascal ComponentResult MCGetControllerInfo (MovieController mc, long *someFlags);
mc- Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager'sOpenComponentorOpenDefaultComponentfunction, or from theNewMovieControllerfunction (described on page 2-28).someFlags- Contains a pointer to flags that specify the current status and capabilities of the controller. The following flags are defined (more than one flag may be set to 1):
mcInfoUndoAvailable- The user has edited the movie. If this flag is set to 1, you can call the
MCUndofunction (described on page 2-54).mcInfoCutAvailable- The user has selected some material in the movie and editing is enabled. If this flag is set to 1, you can call the
MCCutfunction (described on page 2-51).mcInfoCopyAvailable- The user has selected some material in the movie. If this flag is set to 1, you can call the
MCCopyfunction (described on page 2-52).mcInfoPasteAvailable- There is movie data in the scrap and editing is enabled. If this flag is set to 1, you can call the
MCPastefunction (described on page 2-53).- If your application maintains a private scrap, this flag does not reflect the state of that scrap.
mcInfoClearAvailable- The user has selected some material in the movie and editing is enabled. If this flag is set to 1, you can call the
MCClearfunction (described on page 2-54).mcInfoHasSound- The movie has sound. If this flag is set to 1, the controller can play a movie's sound.
mcInfoIsPlaying- If this flag is set to 1, the movie is playing.
mcInfoIsLooping
The controller is currently set to play its movie repeatedly. If this flag is set to 1, the movie is looping.mcInfoIsInPalindrome- The controller is currently set to play its movie
repeatedly, alternating between forward and backward playback. If this flag is set to 1, the movie is in palindrome looping mode.mcInfoEditingEnabled- The user can edit the movie associated with this controller. If this flag is set to 1, you have enabled editing by calling the
MCEnableEditingfunction (described on page 2-50).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help