User guide
39
Using Adobe Media Server on Amazon Web Services
Last updated 8/28/2014
For more information about the pre-built applications, see Streaming services in the Adobe Media Server Developerβs
Guide.
Create an application
To create an new application, create a directory in the /mnt/applications directory. For example, to create an application
called myapplication, create the following directory:
/mnt/applications/myapplication
Working with applications on Adobe Media Server on Amazon Web Services is no different than with other editions
of Adobe Media Server. For complete documentation, see
Adobe Media Server Developer's Guide.
Configure an application
All applications use the default configuration files located in the following directory:
/opt/adobe/ams/conf
To configure a single application, copy an Application.xml file to the applicationsβs directory. For example, to configure
myapplication, copy the Application.xml file to the following location:
/mnt/applications/myapplication/Application.xml
You can place an Application.xml file in an applicationβs folder. Values set in the application-level Application.xml file
override the values in the vhost-level Application.xml file. The vhost-level Application.xml file configures all
applications in a vhost (virtual host). By default, an instance has one virtual host. The vhost-level file is located here:
/opt/adobe/ams/conf/_defaultRoot_/_defaultVHost_/Application.xml
To see an example of configuring a single application, look at the vod and live applications included with Adobe Media
Server. Navigate to /mnt/applications/vod and /mnt/applications/live. Each folder contains an Application.xml file. The
values in these files override the values in the vhost-level file.To prevent settings in the vhost-level Application.xml
settings from being overridden by the application-level Application.xml file, add an override attribute to a tag and set
it to "no", as in the following:
<LoadOnStartup override="no">false</LoadOnStartup>
When override="no" for an element in a vhost-level Applcation.xml file, you cannot override that element, or any
elements contained within that element, in an application-level Application.xml file.
Connect to an application
To connect to the application, use the ActionScript 3.0 NetConnection class:
netconnection.connect(protocol://public-dns/myapplication)
The value of protocol can be any protocol supported by Adobe Media Server. For a complete list, see the Adobe Media
Server Technical Overview.
The value of public-dns is the public DNS entry of the instance. To find this value, select the instance in the AWS
Management Console and look in the details pane.
The value of myapplication is the name of the folder you created in the /mnt/applications directory.
For more information about connecting to an application and streaming media, see Developing streaming media
applications in Adobe Media Server Developerβs Guide.