<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://ns.real.com/tools/audience.1.0" xmlns:rn="http://ns.real.com/tools/audience.1.0" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="en">
	<element name="audience">
		<annotation>
			<documentation>Helix Producer Audience</documentation>
		</annotation>
		<complexType>
			<all>
				<element name="avgBitrate" minOccurs="0">
					<complexType>
						<simpleContent>
							<extension base="nonNegativeInteger">
								<attribute name="type" type="string" use="required" fixed="uint"/>
							</extension>
						</simpleContent>
					</complexType>
				</element>
				<element name="maxBitrate" minOccurs="0">
					<complexType>
						<simpleContent>
							<extension base="nonNegativeInteger">
								<attribute name="type" type="string" use="required" fixed="uint"/>
							</extension>
						</simpleContent>
					</complexType>
				</element>
				<element name="streams" minOccurs="0">
					<complexType>
						<choice maxOccurs="unbounded">
							<element name="videoStream" type="rn:videoStreamType" minOccurs="0"/>
							<element name="audioStream" type="rn:audioStreamType" minOccurs="0"/>
							<element name="eventStream" type="rn:eventStreamType" minOccurs="0"/>
							<element name="imageMapStream" type="rn:imageMapStreamType" minOccurs="0"/>
						</choice>
					</complexType>
					<unique name="videoStreamConstr">
						<selector xpath="videoStream"/>
						<field xpath="."/>
					</unique>
					<unique name="eventStreamConstr">
						<selector xpath="eventStream"/>
						<field xpath="."/>
					</unique>
					<unique name="imageMapStreamConstr">
						<selector xpath="imageMapStream"/>
						<field xpath="."/>
					</unique>
				</element>
			</all>
		</complexType>
	</element>
	<complexType name="videoStreamType">
		<all>
			<element name="pluginName" default="rn-videocodec-realvideo" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:videoStreamPluginNameEnumerationType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="codecName" default="rv9">
				<complexType>
					<simpleContent>
						<extension base="rn:videoCodecNameType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="encodingType" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:encodingType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="quality" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:percentageType">
							<attribute name="type" type="string" use="required" fixed="uint"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="maxStartupLatency" default="4" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:maxStartupLatencyType">
							<attribute name="type" type="string" use="required" fixed="double"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="maxFrameRate" default="30" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:maxFrameRateType">
							<attribute name="type" type="string" use="required" fixed="double"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="enableLossProtection" default="false" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="boolean">
							<attribute name="type" type="string" use="required" fixed="bool"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="maxKeyFrameInterval" default="4" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:maxKeyFrameIntervalType">
							<attribute name="type" type="string" use="required" fixed="double"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
		</all>
	</complexType>
	<complexType name="audioStreamType">
		<all>
			<element name="pluginName" default="rn-audiocodec-realaudio" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:audioStreamPluginNameEnumerationType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="codecName">
				<complexType>
					<simpleContent>
						<extension base="rn:audioCodecNameType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="codecFlavor">
				<complexType>
					<simpleContent>
						<extension base="nonNegativeInteger">
							<attribute name="type" type="string" use="required" fixed="uint"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="streamContext" minOccurs="0">
				<complexType>
					<all>
						<element name="presentationType" minOccurs="0">
							<complexType>
								<simpleContent>
									<extension base="rn:presentationType">
										<attribute name="type" type="string" use="required" fixed="string"/>
									</extension>
								</simpleContent>
							</complexType>
						</element>
						<element name="audioMode" minOccurs="0">
							<complexType>
								<simpleContent>
									<extension base="rn:audioModeType">
										<attribute name="type" type="string" use="required" fixed="string"/>
									</extension>
								</simpleContent>
							</complexType>
						</element>
					</all>
					<attribute name="type" type="string" use="required" fixed="bag"/>
				</complexType>
			</element>
		</all>
	</complexType>
	<complexType name="eventStreamType">
		<all>
			<element name="pluginName" default="rn-transform-event" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:eventStreamPluginNameEnumerationType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="avgBitrate" default="200" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="nonNegativeInteger">
							<attribute name="type" type="string" use="required" fixed="uint"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
		</all>
	</complexType>
	<complexType name="imageMapStreamType">
		<all>
			<element name="pluginName" default="rn-transform-imagemap" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="rn:imageMapStreamPluginNameEnumerationType">
							<attribute name="type" type="string" use="required" fixed="string"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="avgBitrate" default="400" minOccurs="0">
				<complexType>
					<simpleContent>
						<extension base="nonNegativeInteger">
							<attribute name="type" type="string" use="required" fixed="uint"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
		</all>
	</complexType>
	<simpleType name="audioModeType">
		<annotation>
			<documentation>Enumeration list for audio mode (voice or music)</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="voice"/>
			<enumeration value="music"/>
		</restriction>
	</simpleType>
	<simpleType name="videoCodecNameType">
		<restriction base="string">
			<enumeration value="rv9"/>
			<enumeration value="rv8"/>
			<enumeration value="rvg2svt"/>
		</restriction>
	</simpleType>
	<simpleType name="audioCodecNameType">
		<restriction base="string">
			<enumeration value="sipr"/>
			<enumeration value="cook"/>
			<enumeration value="atrc"/>
		</restriction>
	</simpleType>
	<simpleType name="encodingType">
		<annotation>
			<documentation>Enumeration for encodingType</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="cbr"/>
			<enumeration value="vbrBitrate"/>
			<enumeration value="vbrQuality"/>
		</restriction>
	</simpleType>
	<simpleType name="percentageType">
		<annotation>
			<documentation>range of 0-100</documentation>
		</annotation>
		<restriction base="integer">
			<minInclusive value="0"/>
			<maxInclusive value="100"/>
		</restriction>
	</simpleType>
	<simpleType name="maxKeyFrameIntervalType">
		<annotation>
			<documentation>range of 0-60 double</documentation>
		</annotation>
		<restriction base="double">
			<minInclusive value="0"/>
			<maxInclusive value="60"/>
		</restriction>
	</simpleType>
	<simpleType name="maxStartupLatencyType">
		<annotation>
			<documentation>double from 4-25</documentation>
		</annotation>
		<restriction base="double">
			<minInclusive value="4"/>
			<maxInclusive value="25"/>
		</restriction>
	</simpleType>
	<simpleType name="maxFrameRateType">
		<annotation>
			<documentation>0-60</documentation>
		</annotation>
		<restriction base="integer">
			<minInclusive value="0"/>
			<maxInclusive value="60"/>
		</restriction>
	</simpleType>
	<simpleType name="presentationType">
		<annotation>
			<documentation>enumeration of audio-only or audio-video</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="audio-only"/>
			<enumeration value="audio-video"/>
		</restriction>
	</simpleType>
	<simpleType name="videoStreamPluginNameEnumerationType">
		<annotation>
			<documentation>Enumeation for video stream plugin type</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="rn-videocodec-realvideo"/>
		</restriction>
	</simpleType>
	<simpleType name="audioStreamPluginNameEnumerationType">
		<annotation>
			<documentation>Enumeation for audio stream plugin type</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="rn-audiocodec-realaudio"/>
			<enumeration value="rn-audiocodec-vorbis"/>
		</restriction>
	</simpleType>
	<simpleType name="eventStreamPluginNameEnumerationType">
		<annotation>
			<documentation>Enumeration for event stream plugin type</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="rn-transform-event"/>
		</restriction>
	</simpleType>
	<simpleType name="imageMapStreamPluginNameEnumerationType">
		<annotation>
			<documentation>Enumeration for image map stream type</documentation>
		</annotation>
		<restriction base="string">
			<enumeration value="rn-transform-imagemap"/>
		</restriction>
	</simpleType>
</schema>
