You are here: Helix Administrator > Content Management > ISP Hosting > ISP Hosting Basics

ISP Hosting Basics

Helix Mobile Server works with your existing user accounts and directory structure to make users' media files available for streaming. You allocate a minimum and maximum number of connections for each account, based on the number of streams permitted by your license. Allocating on a per-connection basis, rather than by stream, ensures that all files, including SMIL files which reference multiple streams, will always be served.

User account information is stored in a text file, which lists path and connection information. You can list all user account information in a single file, or use separate files to make management easier. Within the user list file, you can create customized account path and connection information. Or, create a single entry that applies to all user accounts.

Links to Users' Hosted Content

Links to hosted content have the following format if used in a Web page:

http://helixserver.example.com:HTTPPort/ramgen/~username/filename.rm

The link which Helix Mobile Server uses, or which you can type directly into RealPlayer, has the following format:

rtsp://helixserver.example.com:RTSPPort/~username/filename.rm

For more information: See "Content Links".

Account Information

When Helix Mobile Server receives a request for streaming media, it looks at user account information, stored in user list files, to determine which user is hosting the requested content. User list files can list account information separately for each user, or can give generic information that applies to all users. Each account has three items associated with it:

account name

virtual path where the account's files will be stored

minimum and maximum connections available to the account

Account information is stored in text files, called user list files. You can put all information into a single file or use separate files to make organization easier.

Connections Available for Each Account

Each account has a reserved number of connections and a maximum number of connections associated with it. The user list file can contain a generic account description that applies to all users, specific instructions about certain accounts, or a combination of the two.

The maximum setting refers to the highest number of connections that will be available for a particular customer's content. Anyone who tries to watch a clip after that account's maximum number of connections are in use will receive an error message, even if connections are available to other accounts.

The number of connections reserved for ISP hosting depends on the type of user record within the user list file:

Specific user account descriptions

Generic user account description

If you use a combination of account descriptions, be sure to read both topics in this section.

Specific User Accounts

The reserved setting ensures that the specified number of connections will always be available to clients that attempt to view a particular user's hosted media.

All reserved connections are subtracted from the overall number of connections available to Helix Mobile Server. The remaining connections are available for non-ISP-hosted content, or for hosted content that hasn't yet been requested. For example, if your Helix Mobile Server is licensed for 50 connections, and you reserve 20 connections through the ISP hosting feature, there are 30 connections available for general use. Helix Mobile Server can use those remaining connections for streaming regular clips, or for users of ISP-hosted material that isn't yet reserved.

Reserved connections are only activated for accounts listed in the user files, and are activated as soon as Helix Mobile Server starts.

Tip: To guarantee that connections will always be available for certain customers, list those account names in the user file, rather than using a generic scheme. Be careful to leave enough streams available for other use, however.

Users whose accounts are not specifically listed in the user list file default to the generic account description.

Generic User Account

For accounts not described in the user list file, minimum connections are not reserved until content is played from a user's account.

Other Considerations

It is possible to reserve more connections than are included in your license. In this case, connections are distributed on a first come, first served basis.

For example, if your Helix Mobile Server is licensed for 50 connections, and you create a generic account that reserves a minimum of 3 connections for all 25 customers, all the connections will be reserved for ISP hosting customers. Since 75 connections are reserved, but only 50 connections are available, the first 50 customers who connect will be able to play content, but anyone connecting after that will not.

Tracking Account Usage

Like any content it serves, Helix Mobile Server creates a record for each file it serves in the access log. The fourth field in each record of the access log, identified by the GET statement, lists the path and filename of each clip served. Compare this information to the path information you've set up to determine how many clips have been streamed from each account.

In most cases, Helix Mobile Server creates one record for each clip served. However, SMIL presentations served from your clients' accounts may generate more than one record. You can see which records are part of a SMIL presentation by looking at the final number in the record (present if Logging Style is 5). These numbers will match if they are from the same SMIL presentation. See "SMIL Files".

Account-Based ISP Hosting

The GET statement will include the ISP hosting mount point and the user's account name (beginning with the ~ character). For example, a file with the URL:

http://helixserver.example.com/ramgen/~chris/file.rm 

would appear in the access log as:

GET ~chris/file.rm

Dedicated ISP Hosting

Because dedicated ISP hosting Helix Mobile Servers can only stream content for users, and not stream any other type of content, the access log will only show material streamed for ISP customers. The mount point will always appear.

The GET statements will show the directory portion of the URL.

A file with the following URL:

http://helixserver.example.com/ramgen/r/ra/rabrams/file.rm

would appear in the access log as:

GET r/ra/rabrams/file.rm

Dedicating Helix Mobile Server to ISP Hosting

Helix Mobile Server can be dedicated to only serving hosted content. If you use this option, Helix Mobile Server cannot stream media files from any other directories.

This option requires that users' directories are arranged in a hierarchy. Features available in dedicated hosting are the same as in account-based hosting.

URLs used in this type of hosting have a different format. Rather than use a tilde (~) to alert Helix Mobile Server to an upcoming ISP request, this method relies on a directory structure shown in the URL.

http://helixserver.example.com/ramgen/s/sa/sandy/media/filename.rm

or

rtsp://helixserver.example.com/s/sa/sandy/media/filename.rm

A comparison of the two styles is shown below. Use only one style on a particular Helix Mobile Server

Comparison of Account Identification Styles

Issue

Account-Based Hosting

Dedicated Hosting

Hosted material

Can host content for ISP users; can also serve ordinary streamed content.

Can only host content from user accounts. Cannot serve other content.

User directory structure

Works with any directory structure; enables different structures or locations. Users may have their own subdirectories.

Works with a hierarchical directory structure, especially an alphabetic one. Organization of directories must be the same for all users. Users may have their own subdirectories.

Reserving connections

Can reserve number of connections available for material streamed from certain accounts.

Cannot guarantee any reserved connections.

User settings

Some users can have customized settings, while generic connection settings describe all other users.

All users have identical settings.

 

Example ISP Hosting Scenario—Northwest ISP

Throughout this section, we'll use the example of an ISP who sets up Helix Mobile Server to host its users' media files. Northwest ISP hosts content for customers in a three-state area in the United States' Pacific Northwest. Users' directories are organized according to the state in which the users live—Washington, Oregon, and Idaho:

C:\home\washington
C:\home\oregon
C:\home\idaho

Individual accounts are located immediately below these directories:

Chris Anderson's account:

C:\home\washington\canderson

Pat Brown's account:

C:\home\washington\pbrown

Lee Adams' account:

C:\home\oregon\ladams

Sandy Chu's account:

C:\home\oregon\schu

Other accounts:

C:\home\idaho\alex
C:\home\idaho\sam
C:\home\idaho\tracy

The links to these users' files look different than other Helix Mobile Server links. These all contain a tilde (~) and the user's usernames or account names:

http://helixserver.example.com/ramgen/~chris/file.rm

http://helixserver.example.com/ramgen/~lee/file.rm

http://helixserver.example.com/ramgen/~pat/file.rm

http://helixserver.example.com/ramgen/~sandy/file.rm

Users' Directory Structures

Helix Mobile Server matches your existing directory locations of users' files, even if you use different structures for different users. Typically, user directories are named with the username of the account; the username is included in the URL.

Customers' media files are stored in their directories. If they place files in a subdirectory of their main directory, that subdirectory must be included in the URL.

Directory Structures in Dedicated Hosting

A Helix Mobile Server used exclusively for hosting users' streamed media from accounts based on a strict directory structure uses an alternate method of identifying accounts. In the user list, you identify how far down the directory path to look for individual user accounts; this requires that the accounts must all be at the same level.

In the following example, accounts are divided into separate directories, according to an alphabetic arrangement:

...
/UserAccounts/r/ra/rabrams
/UserAccounts/r/ra/radams
...
/UserAccounts/s/sa/sanderson
/UserAccounts/s/sb/sbraun
/UserAccounts/s/sb/sbrown
/UserAccounts/s/sc/schu
...

Users may have their own subdirectories. If they place files in a subdirectory of their main directory, that subdirectory must be included in the URL.

Of course, if you use the account-based style of identifying customer directories rather than the method described in this section, you can also dedicate Helix Mobile Server to only hosting streamed media for customers, but other streaming options are still available.

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com