The MediaDelivery list is the master list within the configuration file that holds the media player profiles. If you define profiles within the
Tip: You can define different media profiles in both the configuration file and separate UAS files.
The Media Delivery list holds all variables and sublists associated with media client profiles. It contains the UserAgentSettings list, which holds individual profiles defined directly within the configuration file.
<List Name="MediaDelivery">
<List Name="UserAgentSettings">
<List Name="Default">...</List>
<List Name="profile_1">...</List>
<List Name="profile_2">...</List>
...other media player profiles...
</List>
The following syntax illustrates the general client profile variables that can be set within each profile list. In the default configuration file, only the UseServerSideRateAdaptation variable is set explicitly:
<List Name="profile_name">
<Var BaseProfile="Default"/>
<Var UseServerSideRateAdaptation="clientselect"/>
<Var DebugOutput="0"/>
<Var PreferTCP="0"/>
<Var PreferRTP="0"/>
<Var EnableRDTPacketAggregation="1"/>
<Var RTTProbeFrequency="250"/>
<List Name="MatchUserAgents">
...user agent mappings...
</List>
...additional lists...
</List>
The default configuration file defines a single profile named Default. You can add additional profiles below this configuration as shown in the following example:
<List Name="MediaDelivery">
<List Name="UserAgentSettings">
<List Name="Default">
...default profile definition...
</List>
<List Name="MediaPlayerA">
...profile definition for Media Player A...
</List>
<List Name="MediaPlayerB">
...profile definition for Media Player B...
</List>
</List>
</List>
Profiles that you define within the configuration file are listed in the configuration registry under the user-selected profile name:
config.MediaDelivery.UserAgentSettings.profile_name
Using the preceding sample profiles, the registry stores this configuration information in the following paths:
config.MediaDelivery.UserAgentSettings.Default
config.MediaDelivery.UserAgentSettings.MediaPlayerA
config.MediaDelivery.UserAgentSettings.MediaPlayerB
If you define profiles in UAS files, all variables and sublists are defined within the profile list (that is, the outer MediaDelivery and UserAgentSettings lists are excluded). For example, the contents of the file MediaPlayerA.uas:
<List Name="MediaPlayerA">
...profile definition for Media Player A...
</List>
And the contents of the file MediaPlayerB.uas:
<List Name="MediaPlayerB">
...profile definition for Media Player B...
</List>
Tip: You can define more than one profile in a single .uas file. You just begin each profile with a separate top-level list that provides the unique profile name.
|
parent: |
none |
|
registry: |
config.Media Delivery |
|
function: |
Container for all variables associated with media client profiles. |
|
variables: |
|
parent: |
|
|
registry: |
config.MediaDelivery.UserAgentSettings |
|
function: |
Container element for individual client profiles. |
|
variables: |
none |
Note: This list is not present in UAS files stored in the UAS directory.
|
parent: |
|
|
registry: |
config.MediaDelivery.UserAgentSettings.profile_name |
|
function: |
Defines a unique media client profile. |
|
variables: |
BaseProfile, DebugOutput, EnableRDTPacketAggregation, PreferRTP, PreferTCP, RTTProbeFrequency, UseServerSideRateAdaptation, UseServerSideRateAdaptationForLive |
|
parent: |
|
|
registry: |
config.MediaDelivery.UserAgentSettings.profile_name
|
|
function: |
Defines client user-agent strings that match the profile. |
|
variables: |
The following summarizes the functions and default values of the general client profile variables:
|
Defines the profile from which to inherit values. |
|
|
Generates debugging files. |
|
|
Aggregates RDT packets to obtain better performance. |
|
|
Sets RTP instead of RDT as the preferred packet formats. |
|
|
Sets TCP instead of UDP as preferred transport for client that support it. |
|
|
Sets frequency in milliseconds to probe for roundtrip time on RDT clients. |
|
|
Provides path to directory that holds user-agent settings files. |
|
|
Matches the profile to a user-agent string. |
|
|
Determines when to use server-side rate control for on-demand clips. |
|
|
Determines when to use server-side rate control for live broadcasts. |
|
list: |
|
|
syntax: |
<Var BaseProfile="string"/> |
|
value: |
any string that exactly matches the unique profile name |
|
default: |
Default profile value. |
|
example: |
<Var BaseProfile="default"/> |
This optional variable provides the name of the parent profile from which this profile inherits settings. For example, a profile might inherit basic values from the Default profile stored in the configuration file. To these values, it adds its own values for variable not defined within the Default profile. A profile stored in the configuration file can inherit values from a profile defined within a UAS file, and vice versa.
Note: Inheritance can reach multiple levels deep. When a parent profile and a child profile contain conflicting values for the same variable, the value in the child profile takes precedence.
For more information: For more about inheritance of profile values, see the rate control chapter of Helix Mobile Systems Integration Guide.
|
list: |
|
|
syntax: |
<Var DebugOutput="Boolean"/> |
|
value: |
0—disable debug output |
|
default: |
0 |
|
example: |
<Var DebugOutput="0"/> |
Enables
For more information: The debugging file names and syntax are explained in the section "Rate Control Logs". For more about BCC and TFRC, refer to "BCC Configuration" and "TFRC Configuration".
|
list: |
|
|
syntax: |
<Var EnableRDTPacketAggregation="Boolean"/> |
|
value: |
0—disable RDT packet aggregation |
|
default: |
1 |
|
example: |
<Var EnableRDTPacketAggregation="1"/> |
When this variable is enabled,
Aggregating packets reduces CPU load and helps the server run more efficiently. As server load increases, the server tries to write more, and larger, aggregated packets.
Note: Aggregation works only when streaming to RealPlayer and Helix-based media players, using the RDT packet format delivered over the UDP transport.
|
list: |
|
|
syntax: |
<Var PreferRTP="Boolean"/> |
|
value: |
0—choose the first viable packet format (RDT or RTP) offered |
|
default: |
0 |
|
example: |
<Var PreferRTP="0"/> |
This variable applies only to RealNetworks and Helix-based media players. When enabled, the variable causes
|
list: |
|
|
syntax: |
<Var PreferTCP="Boolean"/> |
|
value: |
0—use the first viable transport offered by the client 1—use UDP only if TCP is not supported |
|
default: |
0 |
|
example: |
<Var PreferTCP="0"/> |
This variable causes
For more information: See "TCP Configuration".
|
list: |
|
|
syntax: |
<Var RTTProbeFrequency="integer"/> |
|
value: |
integer value that sets the probe frequency in milliseconds |
|
default: |
250 |
|
example: |
<Var RTTProbeFrequency="250"/> |
This variable is used only with RealPlayer version 10 and later, as well as Helix-based media players. When the stream uses the RDT packet format, this variable sets the frequency at which
|
list: |
|
|
syntax: |
<Var UASPath="path"/> |
|
value: |
path to the directory that holds .uas files |
|
default: |
none |
|
example: |
<Var UASPath="/usr/helix/helixserver/profiles" /> |
This variable defines the full path to the directory that holds UAS files. You can omit this variable or leave it undefined only if all profiles are stored within the
Note: Use only directory names, and do not include server mount points in the path.
|
list: |
|
|
syntax: |
<Var UserAgent_n="partial_string_match|=exact_string_match"/> |
|
value: |
full or partial match to user-agent string |
|
default: |
none |
|
example: |
<Var UserAgent_1="RealMedia Player/3"/> |
Each profile can have multiple UserAgent_n variables, in which n is an integer that starts at 1. If
If the UserAgent variable begins with an equals sign (=), it requires an exact, case-sensitive match of all characters following the equals sign to all characters in the user agent string. If there is no equals sign, the UserAgent value makes non-case-sensitive matches to partial user-agent strings.
Note: The use of regular expressions in the UserAgent value is not supported.
For more information: Refer to the rate control chapter of Helix Mobile Systems Integration Guide for information about how
|
list: |
|
|
syntax: |
<Var UseServerSideRateAdaptation="string"/> |
|
value: |
always|clientselect|never |
|
default: |
clientselect |
|
example: |
<Var UseServerSideRateAdaptation="clientselect"/> |
The UseServerSideRateAdaptation variable enables server-side rate control for on-demand clips. Possible values are:
|
always |
|
|
clientselect |
|
|
never |
Rate control disabled for this profile. This setting overrides the values for EnableHelixAdaptation and Enable3GPPAdaptation. |
The individual rate adaptation methods can also be turned on or off for the client as well. The following table illustrates which rate control methods are used based on the possible combinations of these variable settings.
|
UseServerSide |
EnableHelix |
Enable3GPP |
Result |
|
always |
0 |
0 |
Always use rate control for all clients. Ignore any Helix or 3GPP rate adaptation feedback. |
|
1 |
0 |
Always use rate control for all clients. Advertise Helix rate adaptation. Ignore any 3GPP rate adaptation feedback. |
|
|
0 |
1 |
Always use rate control for all clients. Advertise 3GPP rate adaptation. Ignore any Helix rate adaptation feedback. |
|
|
1 |
1 |
Always use rate control for all clients. Advertise Helix and 3GPP rate adaptation. |
|
|
clientselect |
0 |
0 |
Use rate control for clients that support it. Ignore any Helix or 3GPP rate adaptation feedback. |
|
1 |
0 |
Use rate control for clients that support it. Advertise Helix rate adaptation. Ignore any 3GPP rate adaptation feedback. |
|
|
0 |
1 |
Use rate control for clients that support it. Advertise 3GPP rate adaptation. Ignore any Helix rate adaptation feedback. |
|
|
1 |
1 |
Use rate control for clients that support it. Advertise Helix and 3GPP rate adaptation. This is the system default. |
|
|
never |
0 |
0 |
Disable server-side rate control. Ignore any Helix or 3GPP rate adaptation data sent by the client. |
|
1 |
0 |
||
|
0 |
1 |
||
|
1 |
1 |
||
|
|
|||
For more information: See EnableHelixAdaptation and Enable3GPPAdaptation.
|
list: |
|
|
syntax: |
<Var UseServerSideRateAdaptationForLive="string"/> |
|
value: |
clientselect|never |
|
default: |
clientselect |
|
example: |
<Var UseServerSideRateAdaptationForLive="clientselect"/> |
The UseServerSideRateAdaptationForLive variable enables server-side rate control for live broadcasts. Possible values are:
|
clientselect |
|
|
never |
Rate control disabled for this profile. This setting overrides the values for EnableHelixAdaptation and Enable3GPPAdaptation for live broadcasts. |
The individual rate adaptation methods can also be turned on or off for the client as well. The table "Rate Adaptation Variable Settings" illustrates which rate control methods are used. Note, however, that UseServerSideRateAdaptationForLive does not accept an "always" value.
For more information: See EnableHelixAdaptation and Enable3GPPAdaptation.
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com
Profiles Added to the Configuration File