Mscape Help


Pause, Resume and Repeat the last instruction.

Pause and resume

We have found that people appreciate the ability to pause and restart a mediascape. This is so that they can control interruptions, talk to friends and pace themselves. The other frequently used control that people like to use is the ability to repeat the last thing that was played. This is particularly important on missions or games which require you to go to a certain place or perform some action. If people miss the instruction or are interrupted and want to resume then they want to be able to replay it.

All of these capabilities are easy to implement if you use the Playlist in your mediascape.

To pause simply call Playlist.Pause(); in a script window.
To resume call Playlist.Resume();

The most common way to add these controls is to map them to hardware buttons How To: Use hardware buttons in your mediascape
It is also a good idea to have a message on the screen to say that the Mediascape is Paused and which button to press to resume it. Assuming you have an image called Paused in your mediascape then adding the following code to one of the cursor buttons will allow you to Pause and Resume your mediascape.

if (Playlist.Status == PlaylistStatus.Paused)
   {
   paused.Hide();
   Playlist.Resume();
   }
   else
   {
   Playlist.Pause();
   paused.Show();
   }

Repeat last instruction.

It is easiest to make this a function of pressing one of the hardware buttons. You simply need to add the following two lines of code to the script of one of the cursor buttons.

Playlist.Stop();
Playlist.Resume();

Stopping and resuming the playlist will play the last thing that was in the buffer. If nothing is currently playing it will simply play the last thing, if something is playing it will stop it and start it again from the beginning.

-- JoReid? - 30 May 2007

Ready to
get started?

Download Mscape Suite Version 2.1 | 10.5 MB

Ask the Mscape Community

Forums