Note: The following article is adapted from the Adobe Media Player 1.5 Content Developer Kit, available for download from the Adobe Media Player Developer Center home page.
This article provides examples of Enhanced Feeds, Adobe Media Orchestration Documents (AMODs), and nested AMODs.
For information on Feeds, Enhanced Feeds, and AMODs see Preparing and customizing content in Adobe Media Player.
For information on nested AMODs (SMIL-in-SMIL), see "Enabling external ad packages" in Delivering your advertising in Adobe Media Player.
The following example shows an Enhanced Feed that contains references to a nested AMOD. The AMOD specifies an image asset:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<title>Nested mod-2</title>
<copyright>Copyright (c) Foo, Inc. All rights reserved.</copyright>
<link>http://www.foo.com</link>
<description>Simple Nested MOD</description>
<language>en-us</language>
<image>
<title>Nested mod-2</title>
<width>36</width>
<height>44</height>
<link>http://www.foo.com/</link>
<url>http://www.foo.com/nestedMOD/ads/foo3.png</url>
</image>
<item>
<title>Nested mod-2</title>
<description>Nested MOD 2</description>
<guid>766333422323</guid>
<pubDate>Fri, 13 Oct 2006 12:21:30 -500</pubDate>
<enclosure url="http://www.foo.com/nestedMOD/mod-2.smi" length="10000" type="application/smil+xml" />
<media:group>
<media:content url="http://www.foo.com/nestedMOD/mod-2.smi" type="application/smil+xml" isDefault="true" expression="full" />
</media:group>
<media:title>Nested MOD 2</media:title>
<media:thumbnail url="http://www.foo.com/nestedMOD/ads/foo3.png" />
</item>
</channel>
</rss>
The following example shows an AMOD that contains references to a nested AMOD. The AMOD specifies a video sequence:
<smil xmlns="http://www.w3.org/2005/SMIL21/Language"
xmlns:amp="/amp/1.1">
<head>
<layout>
<region id="banner" />
<region id="content" />
<region id="logo" />
</layout>
</head>
<body>
<par id="rootParallelActivity">
<seq id="FooVideoSequence">
<video id="Foo-1-Video" region="content" src="http://www.foo.com/nestedMOD/ads/Foo3-1.flv" dur="20.58s" />
<video id="Foo-2-Video" region="content" src="http://www.foo.com/nestedMOD/ads/Foo3-2.flv" dur="17.07s" />
<video id="Foo-3-Video" region="content" src="http://www.foo.com/nestedMOD/ads/Foo3-3.flv" dur="21.2s" />
</seq>
<ref src="http://www.foo.com/nestedMOD/nested-mod-2.smi" />
<seq id="logoImagesSequence">
<image region="logo" src="http://www.foo.com/ads/FooLogo.JPG" dur="58.85s" />
</seq>
</par>
</body>
</smil>
The following example shows a nested AMOD. It specifies a sequence of banner images to rotate:
<smil xmlns="http://www.w3.org/2005/SMIL21/Language" xmlns:amp="/amp/1.1">
<head>
<layout>
<region id="banner" />
<region id="content" />
<region id="logo" />
</layout>
</head>
<body>
<seq id="BannerImagesSequence">
<image region="banner" src="http://www.foo.com/nestedMOD/ads/Ad1Banner.JPG" dur="15s" />
<image region="banner" src="http://www.foo.com/nestedMOD/ads/Ad2Banner.JPG" dur="15s" />
<image region="banner" src="http://www.foo.com/nestedMOD/ads/Ad1Banner.JPG" dur="15s" />
<image region="banner" src="http://www.foo.com/nestedMOD/ads/Ad2Banner.JPG" dur="13.85s" />
</seq>
</body>
</smil>
For details on installing and using Adobe Media Player, see the Adobe Media Player User Guide (Using Adobe Media Player). For information on known issues and TechNotes, see Adobe Media Player Known Issues.
Browse the other chapters to read more of the CDK:
This content was authored by Adobe Systems, Inc.