Work with video-on-demand, live, multicast, and live packaging applications that are pre-built in AMS.

Work with pre-built applications

Adobe Media Server installs with four pre-built applications (also called streaming services). The tutorials in the section Tutorials: on-demand and live streaming use these applications. The following table describes each application:

Application name

Description

vod

This application plays on-demand media files. To configure the storage location for the media files, see Where to store content on an instance.

See On-demand streaming.

live

This application broadcasts a live stream and doesn’t record it.

See Live streaming.

multicast

This application multicasts a live stream and doesn’t record it.

See Multicast streaming.

livepkgr

This application broadcasts a live stream over HTTP and doesn’t record it. See Live HTTP Dynamic Streaming.

To record a stream, see Publish and play a single live stream over HTTPin Adobe Media Server Developer’s Guide.

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.

For a complete ActionScript reference, see ActionScript 3.0 Reference for Flash Platform.

Check out Graeme Bull’s Adobe Media Server video tutorials at fmsguru.com.

Record a live event

You can record archives of live events just as you would with any edition of Adobe Media Server that supports recording. To store the archives, copy them from the instance to a storage volume (either EBS or S3) before you stop or terminate the instance.

To record a live stream, use the DVRCast application. For more information, see Live streaming with DVR.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy