public static VideoQuality parseQuality(String str) {
		VideoQuality quality = DEFAULT_VIDEO_QUALITY.clone();
		if (str != null) {
			String[] config = str.split("-");
			try {
				quality.bitrate = Integer.parseInt(config[0])*1000; // conversion to bit/s
				quality.framerate = Integer.parseInt(config[1]);
				quality.resX = Integer.parseInt(config[2]);
				quality.resY = Integer.parseInt(config[3]);
			}
			catch (IndexOutOfBoundsException ignore) {}
		}
		return quality;
	}
Represents a quality for a video stream.
@param resX The horizontal resolution
@param resY The vertical resolution
@param framerate The framerate in frame per seconds
@param bitrate The bitrate in bit per seconds
src/net/majorkernelpanic/streaming/video/VideoQuality.java