The Movie Player can automatically repeat a movie once it reaches the end. It can also suppress playback of sound cast members and streamed audio (specified through movie script-channel commands).
The following functions set and check the Movie Player repeat and mute flags:
mmpSetRepeat
Tells the Movie Player to automatically repeat the movie.
mmpGetRepeat
Returns TRUE if the Movie Player repeat flag is set.
mmpSetMute
Tells the Movie Player to suppress playback of sound cast members.
mmpGetMute
Returns TRUE if the Movie Player mute flag is set.
The syntax of mmpSetRepeat is as follows:
BOOL mmpSetRepeat(idMovie, bRepeat)
Pass a TRUE value to bRepeat, along with the movie ID in idMovie, to make the Movie Player automatically repeat the movie. To turn off the automatic repeat, pass a FALSE to bRepeat.
Use the mmpSetMute function to cancel playback of sound cast members. The mmpSetMute function has the following syntax:
BOOL mmpSetMute(idMovie, bMuteOn)
Pass the movie ID of the Movie Player instance to idMovie. Pass a TRUE value to bMuteOn to turn off the sound playback; a FALSE value to restart the playback of sound cast members.
Note:
The mmpSetMute function does not stop the playback of streamed audio started using the mci script-channel command. To cancel processing of MCI commands in the script channel, you must use a frame callback function, as described in the following section.