public static void muteAll(){
		// Used for the loops
		int i;
		// Used so that the methods associated with a video player can be accessed.
		VideoPlayer currentVideoPlayer;

		// Used so that the methods associated with a Audio player can be accessed.
		AudioPlayer currentAudioPlayer;

		// Used so that the methods associated with a midi player can be accessed.
		MidiPlayer currentMidiPlayer;

		// Tests whether there are any entities to displayed on the slide.
		if (entityPlayers != null)
		{
			for(i =0;i <entityPlayers.size(); i++)
			{
				// test whether the players are active.
				if (entityPlayers.get(i).getIsActive())
				{
					if (entityPlayers.get(i) instanceof VideoPlayer)
					{
						// Mute method called
						currentVideoPlayer = (VideoPlayer) entityPlayers.get(i);
						currentVideoPlayer.muteMedia();
					}

					if (entityPlayers.get(i) instanceof AudioPlayer)
					{
						// Mute method called
						currentAudioPlayer = (AudioPlayer) entityPlayers.get(i);
						currentAudioPlayer.muteMedia();
					}

					if (entityPlayers.get(i) instanceof MidiPlayer)
					{
						// Mute method called
						currentMidiPlayer = (MidiPlayer) entityPlayers.get(i);
						currentMidiPlayer.muteMedia();
					}
				}
			}
		}
	}