User Guide

addVHostAlias() 15
Example
The following example shows a call to add the ChatApp application to the connected virtual
host:
nc = new NetConnection();
nc.connect("rtmp://localhost:1111/admin", "JLee", "x52z49ab");
nc.call("addApp", new onAddApp(), "ChatApp");
addVHostAlias()
Availability
Flash Player 6.
Flash Media Server 2.
Usage
addVHostAlias(VHostName, AliasName, PersistValue)
Parameters
VHostName A string indicating the virtual host to which to add an alias.
AliasName A string indicating the alias name to add to the specified vhost.
PersistValue A Boolean value indicating whether the alias change will be written to the
configuration file to last beyond the vhost's next restart (true), or whether this alias will be lost
on vhost restart (false).
Returns
If the call succeeds, the server sends a reply information object with a level property of
status, and a code property of NetConnection.Call.Success.
Description
Adds an alias to a virtual host. Aliases are alternative names for vhosts that are used as targets
by incoming Flash Media Server connections. When you remove an alias, that name is no
longer available for incoming connections.
Before this API was available, alias names had to be added to the configuration files manually.
See also
removeVHostAlias()