The on-demand mount points allow Helix Mobile Server to stream pre-recorded clips to viewers.
For more information: For information about defining mount points using Helix Administrator, see "Mount Points".
The following sample shows the syntax for defining a single mount point for serving unsecured on-demand content:
<List Name="FSMount">
<List Name="RealSystem Content">
<Var ShortName="pn-local"/>
<Var MountPoint="/"/>
<Var BasePath="/home/user/Content"/>
<Var UseContentDistribution="1"/>
<Var MountPointSearchOrder="1"/>
<Var AllowFileCreation="0"/>
<Var AllowFileDeletion="0"/>
<Var EnableContentRecording="1"/> <Var FlashgenType="rtmp"/>
</List>
...additional file system mount point information...
</List>
The predefined iPhone Content list contains additional syntax elements that define segmentation values for iPhone content:
<List Name="FSMount">
...other mount point entries...
<List Name="iPhone Content">
...basic mount point variables...
<List Name="MPEG2-TS_Output">
<Var AltURL="http://www.example.com/error.html"/> <Var ArchiveMountPoint="/BroadcastArchive/"/> <Var EnableEncryption="1"/> <Var EnableLiveArchive="1"/> <Var KeyFileInterval="15"/> <Var KeyFileURL="http://www.example.com/keyfile/"/> <Var KeyFileWriteLocation="/WebShared/"/> <Var PlaylistSegments="3"/> <Var SegmentDuration="10"/> <Var SegmentPurgeSize="5120"/> <Var WriteAbsolutePaths="1"/>
</List>
</List>
...additional file system mount point information...
</List>
|
parent: |
|
|
registry: |
config.FSMount.mount_name |
|
function: |
Defines an individual mount point. |
|
variables: |
AllowFileCreation, AllowFileDeletion, BasePath, FlashgenType, MountPoint, MountPointSearchOrder, ShortName, UseContentDistribution |
The configuration file predefines the following lists for on-demand content:
|
RealSystem Content |
Default mount point (/) for delivering on-demand content. It maps to the Content/ subdirectory of the main installation directory. |
|
RealSystem Secure Content |
Mount point (/secure/) for secure content requiring user name and password authentication. It maps to the Secure/ subdirectory of the main installation directory. |
|
Mount point (/iPhone/) for segmented content delivered to Apple iPhone clients. It maps to the iPhone subdirectory of the main installation directory. It maps to the Content/iPhone subdirectory of the main installation directory. |
|
|
iPhone VOD Source Content |
Mount point (/iPhone-srce/) for source content segmented and delivered to Apple iPhone clients. It maps to the Content/iPhone-src subdirectory of the main installation directory. |
Warning: Mount point list names cannot contain periods. See "Avoiding Periods in List Names".
|
parent: |
|
|
registry: |
config.FSMount.iPhone Content.MPEG2-TS_Output |
|
function: |
Defines segmentation values for iPhone content. |
|
variables: |
ArchiveExtension, ArchiveMountPoint, EnableCaching, EnableEncryption, EnableLiveArchive, KeyFileInterval, KeyFileURL, KeyFileWriteLocation, ODDurationForM3UReady, PlaylistSegments, SegmentDeleteDelay, SegmentDuration, SegmentNameRandomization, SegmentPurgeSize, TokenTTL, WriteAbsolutePaths |
|
list: |
|
|
syntax: |
<Var AllowFileCreation="Boolean"/> |
|
value: |
0—external processes cannot create files under this mount point |
|
default: |
0 |
|
example: |
<Var AllowFileCreation="1"/> |
The AllowFileCreation variable allows external processes to create files under this mount point. Typically, this variable should be set to 0 for most mount points. Change the value to 1 only if that setting is specifically required by a Helix Mobile Server feature, such as the playlist management feature.
Note: A global variable must also be enabled to allow this action. See EnableFileCreation.
For more information: See "Server-Side Playlist Configuration".
|
list: |
|
|
syntax: |
<Var AllowFileDeletion="Boolean"/> |
|
value: |
0—external processes cannot delete files under this mount point |
|
default: |
0 |
|
example: |
<Var AllowFileDeletion="1"/> |
The AllowFileDeletion variable allows external processes to delete files under this mount point. Typically, this variable should be set to 0 for most mount points. Change the value to 1 only if that setting is specifically required by a Helix Mobile Server feature, such as the playlist management feature.
For more information: See "Server-Side Playlist Configuration".
|
list: |
|
|
syntax: |
<Var BasePath="string"/> |
|
value: |
full path as appropriate for the operating system |
|
default: |
none |
|
example: |
<Var BasePath="/home/export/san/content" /> |
The BasePath variable indicates where content served by the on-demand mount point is stored.
|
list: |
|
|
syntax: |
<Var FlashgenType="string"/> |
|
value: |
rtmp—use RTMP in SMIL URLs |
|
default: |
rtmp |
|
example: |
<Var FlashgenType="rtmps"/> |
Used only with the Flashgen mount point, the FlashgenType variable determines which Flash protocol is used in URLs to multirate content returned in the generated SMIL file. Helix Mobile Server supports the use of RTMPS or RTMPT as alternatives to the default RTMP.
For more information: For details about defining the Flashgen mount point, see "Client Launch Utility Configuration".
|
list: |
|
|
syntax: |
<Var MountPoint="string"/> |
|
value: |
/—unsecured content in the Content subdirectory |
|
default: |
none |
|
example: |
<Var MountPoint="/videos/"/> |
The MountPoint variable defines the virtual path used in the URL to indicate content that resides under the mount point base path.
Tip: Two or more mount points can have duplicate MountPoint values as long as each mount point is in a unique mount_name list and has a unique BaseMountPoint value. You must also set a mount point search order.
Warning: A MountPoint entry cannot contain spaces or any of the following special characters: =!@#$%^&*()[]{};:"'<>,?|~\
|
list: |
|
|
syntax: |
<Var MountPointSearchOrder="integer"/> |
|
value: |
unique integer value of 1 or higher |
|
default: |
1 |
|
example: |
<Var MountPointSearchOrder="3"/> |
A MountPointSearchOrder value indicates the order in which Helix Mobile Server searches mount points that share the same name.
Warning: If two or more mount points that use the same name have the same search order, Helix Mobile Server searches the first of these mount points that is listed in its configuration file. It does not search any of the subsequent mount points that have the same name and search order.
For more information: For background on this feature, see the section "Searching Alternate Mount Points".
|
list: |
|
|
syntax: |
<Var ShortName="string"/> |
|
value: |
pn-local—content on a local drive |
|
default: |
none |
|
example: |
<Var ShortName="pn-local"/> |
The ShortName variable indicates the file system plug-in that handles requests for the content. The value must correspond to a name encoded in the plug-in.
|
list: |
|
|
syntax: |
<Var UseContentDistribution="Boolean"/> |
|
value: |
0—do not distribute content under this mount point |
|
default: |
1 |
|
example: |
<Var UseContentDistribution="1"/> |
The UseContentDistribution variable determines if content found under this mount point can be used for content caching:
If this Helix Mobile Server is a content publisher, it will distribute content for this mount point and any of its alternate mount points.
If this Helix Mobile Server is a content subscriber, it will retrieve content under this mount point from a publisher if it does not possess the content.
Note: If the subscriber has multiple mount points that use the same name, the UseContentDistribution value for the first mount point in the search order (MountPointSearchOrder) determines if the subscriber contacts the publisher.
For more information: See "Content Caching Configuration".
The following variables fall within the MPEG2-TS_Output list for each mount point used for generating segmented transport streams.
For more information: See "MPEG-2 Transport Stream Configuration" for information about setting global segmentation values and associating source mount points with segment mount points. The section "Media Segmentation" explains how to set up segmentation mount points using Helix Administrator.
|
list: |
|
|
syntax: |
<Var AltServer="string"/> |
|
value: |
DNS name|IP address |
|
default: |
none |
|
example: |
<Var AltServer="helixserver.example.com"/> |
This variable redirects the client to an alternate server if the current stream fails or its segments are missing. If this variable is present, Helix Mobile Server provides the client with the URL to this alternate server in the index file EXT-X-STREAM-INF section.
Tip: Specify only the server address. Helix Mobile Server automatically includes the necessary path and file information.
Note: The content on the alternate server must reside in an identical path and use the same index file name. Helix Mobile Server does not validate the URL or check if the requested segments exist at the specified location.
|
list: |
|
|
syntax: |
<Var AltURL="string"/> |
|
value: |
fully qualified URL or path relative to the playlist location |
|
default: |
none |
|
example: |
<Var AltURL="http://www.example.com/error.html"/> |
This variable directs the client to alternate content (an error message, for example) if the segment stream fails or the transport files do not exist. If this variable is present, Helix Mobile Server sets the URL or path location as the value of the EXT-X-STREAM-INF section in the index file.
Note: Helix Mobile Server ignores this variable if you also set a value for AltServer.
|
list: |
|
|
syntax: |
<Var ArchiveExtension="string"/> |
|
value: |
user-defined string |
|
default: |
-archive |
|
example: |
<Var ArchiveExtension="-archive"/> |
This variable defines an extension added to folders and playlists to identify them as archives for live broadcasts. These archives are not deleted when segment content is purged from the mount point.
|
list: |
|
|
syntax: |
<Var ArchiveMountPoint="string"/> |
|
value: |
existing mount point |
|
default: |
segment mount point |
|
example: |
<Var ArchiveMountPoint="/BroadcastArchive/"/> |
This variable specifies an existing mount point used to archive live broadcasts that are segmented under this moint point. It allows you to create broadcast archives in a directory other than the one used to segment the broadcast content.
For more information: The variable EnableLiveArchive turns archiving on or off for the mount point.
|
list: |
|
|
syntax: |
<Var EnableCaching="Boolean"/> |
|
value: |
0—prevent client from caching segments for later playback |
|
default: |
1 |
|
example: |
<Var EnableCaching="0"/> |
This variable defines the value written for the playlist tag EXT-X-ALLOW-CACHE, which determines if the client can cache content for later playback.
|
list: |
|
|
syntax: |
<Var EnableEncryption="Boolean"/> |
|
value: |
0—do not encrypt segment files |
|
default: |
0 |
|
example: |
<Var EnableEncryption="1"/> |
Setting this variable to 1 causes Helix Mobile Server to encrypt segment files and generate a key file. The index file automatically includes a link to the key file.
|
list: |
|
|
syntax: |
<Var EnableLiveArchive="Boolean"/> |
|
value: |
0—do not archive live streams |
|
default: |
0 |
|
example: |
<Var EnableLiveArchive="1"/> |
This variable determines if segment files and an index file are saved for each live broadcast segmented under the mount point.
|
list: |
|
|
syntax: |
<Var KeyFileInterval="integer"/> |
|
value: |
integer value representing minutes (0 to disable) |
|
default: |
0 |
|
example: |
<Var KeyFileInterval="15"/> |
If you encrypt segment files (see EnableEncryption), this variable determines how frequently Helix Mobile Server changes the encryption key during a segmentation process.
Tip: To maintain multiple key files needed to decrypt a presentation, Helix Mobile Server appends the suffix -kfn to the key file name. Here, n is an integer value starting with 0.
|
list: |
|
|
syntax: |
<Var KeyFileURL="string"/> |
|
value: |
host name or fully qualified URL |
|
default: |
current host |
|
example: |
<Var KeyFileURL="www.example.com"/> |
This variable directs the client to the location of the key file, which is necessary if you set a value for KeyFileWriteLocation. The URL includes the key file mount point defined by the KeyFileWriteLocation variable and the directory structure created for the key file under that mount point.
Tip: If you use just a host name, such as www.example.com, Helix Mobile Server automatically includes the correct protocol and port in the URL based on the setting of the UseHTTPSKeyfileDelivery global variable.
Note: Do not end the key file URL value with a closing slash.
Warning: Helix Mobile Server does not validate the URL or check that the key file exists at the specified location.
|
list: |
|
|
syntax: |
<Var KeyFileWriteLocation="string"/> |
|
value: |
existing mount point |
|
default: |
segmentation mount point |
|
example: |
<Var KeyFileWriteLocation="/keys/"/> |
This variable specifies a mount point where Helix Mobile Server writes the key file.
Note: Helix Mobile Server replicates the directory structure of the segmented output under the key file mount point. The directories contain only key files, however.
|
list: |
|
|
syntax: |
<Var ODDurationForM3UReady="integer"/> |
|
value: |
number of seconds |
|
default: |
100 |
|
example: |
<Var ODDurationForM3UReady="100"/> |
This variable determines how many seconds of on-demand presentation data Helix Mobile Server segments before returning the playlist to the client.
Tip: Typically, a client requests up to 50 seconds of playback data when it starts an on-demand presentation. The default value for this variable ensures that the server has created approximately twice the amount of data initially requested by the client before it transmits the playlist.
Note: This variable does not appear in configuration files generated by Helix Administrator. If you need to modify the default value, insert the variable manually in the configuration settings for each mount point under which content is segmented.
|
list: |
|
|
syntax: |
<Var PlaylistSegments="integer"/> |
|
value: |
integer value of 3 or greater |
|
default: |
3 |
|
example: |
<Var PlaylistSegments="3"/> |
This variable sets the minimum number of transport segments created for each on-demand clip or broadcast.
|
list: |
|
|
syntax: |
<Var SegmentDeleteDelay="integer"/> |
|
value: |
integer value of 0 or greater that represents seconds |
|
default: |
0 |
|
example: |
<Var SegmentDeleteDelay="3"/> |
This variable specifies the number of additional seconds that Helix Mobile Server waits before deleting obsolete segments for a live broadcast or when purging files. For a live broadcast, the normal delay is the total playlist length plus the length of one segment.
|
list: |
|
|
syntax: |
<Var SegmentDuration="integer"/> |
|
value: |
integer value representing seconds |
|
default: |
10 |
|
example: |
<Var SegmentDuration="10"/> |
This variable sets the playback duration of media data each segment contains.
|
list: |
|
|
syntax: |
<Var SegmentNameRandomization="Boolean"/> |
|
value: |
0—do not add random digits to the segment file names |
|
default: |
1 |
|
example: |
<Var SegmentNameRandomization="0"/> |
When set to the default value of 1, this variable adds five random digits to the segment file names. Segments are therefore named like the following:
1-52380.ts, 2-17657.ts, 3-89123.ts, 4-33956.ts...173-43219-END.ts
If you set variable to 0, the random digits are not included:
1.ts, 2.ts, 3.ts, 4.ts...173-END.ts
|
list: |
|
|
syntax: |
<Var SegmentPurgeSize="integer"/> |
|
value: |
maximum size of mount point content in Megabytes (0 for no limit) |
|
default: |
5120 |
|
example: |
<Var SegmentPurgeSize="2048"/> |
This variable defines the total size allowed for segment files under the mount point. Once this size is reached, Helix Mobile Server begins to delete the oldest segment directories.
Tip: Broadcast archives and content for playlists being delivered are included in the file size calculation but are not deleted in a purge.
|
list: |
|
|
syntax: |
<Var TokenTTL="integer"/> |
|
value: |
token time to live in seconds |
|
default: |
none |
|
example: |
<Var TokenTTL="2400"/> |
This variable is for use only with the Helix Mobile Server security manager. If defined, its value overwrites the tokenttl value included in the URL generated by the security manager.
|
list: |
|
|
syntax: |
<Var WriteAbsolutePaths="Boolean"/> |
|
value: |
0—do not write full paths to segment files in index files |
|
default: |
0 |
|
example: |
<Var WriteAbsolutePaths="1"/> |
Setting this variable to 1 writes full paths to segment files within the index file. With the default value, the index file lists relative paths to the segment files.
Tip: The default value allows you to move the contents to a different location for streaming without having to update the segments URLs in the index file.
Note: Absolute paths use the host name set by the HostName variable of the /m3ugen/ mount point. If this value is not defined, Helix Mobile Server may be able to derive the host name from the machine information. This may not work in all cases, however.
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com
