public void setVolume(float volume) {
		if (Debug.video) System.out.println("VideoPlayer -> setVolume called with " + volume);
		if ((null != player) && (realizeComplete)) {

			// Verify the input
			if (80 < volume){
				if (Debug.video) System.out.println("VideoPlayer -> setVolume -> vol over limit");
				volume = 80;
			}
			if (0 > volume){
				if (Debug.video) System.out.println("VideoPlayer ->  setVolume -> vol under limit");
				volume = 0;
			}

			// setLevel takes a float value between 0 and 1
			gainControl.setLevel(volume/100);
			if (Debug.video) System.out.println("VideoPlayer ->  setVolume -> volume set by setVolume");
		}
	}