This appendix provides examples of submitting content and content editions with preview files and custom fields.
Original Content File as Preview
The following example demonstrates the submission of a content item that uses the original content file as its preview. (Note that midlet and iappli content types cannot be used as previews.) The ZIP file contains the content file, Lullaby_1_1.mid, which is also used as the preview file. The ZIP file also contains the meta/ContentSubmission.xml file.
CODE EXAMPLE A-1 Content Item Using the Original Content as a Preview
<?xml version="1.0" encoding="UTF-8"?>
<ContentSubmission>
<Action value="New"/>
<ContentDescriptor>
<ContentType>ringtone</ContentType>
<EditionName>Lullaby1.1</EditionName>
<Version>1.1</Version>
<Preview>
<Wap>
<File useContentFile="true" caption="Full Version"/>
</Wap>
<Web>
<File useContentFile="true" caption="Hear the complete lullaby"/>
</Web>
</Preview>
</ContentDescriptor>
<WebDescriptor>
<Category>Home:Entertainment:Music</Category>
<WebGroup>
<DisplayName>Lullaby</DisplayName>
<ShortDescription>Memories every time your phone rings</ShortDescription>
<LongDescription>Bring back memories of gentler days every time your phone rings</LongDescription>
</WebGroup>
</WebDescriptor>
</ContentSubmission>
|
Edition with Two Preview Sets
The following example demonstrates the submission of an edition that has two preview sets. The ZIP file contains the preview files, Lullaby_1_2.mid (the original content item used as a preview) and preview/Lullaby_1_2.mp3 (a preview for sampling on the web). The ZIP file also contains the meta/ContentSubmission.xml file.
CODE EXAMPLE A-2 Edition Using the Original Content as a Preview and a Different Preview for the Web
<?xml version="1.0" encoding="UTF-8"?>
<ContentSubmission>
<Action value="Add">
<EditionName>Lullaby1.1</EditionName>
</Action>
<ContentDescriptor>
<ContentType>ringtone</ContentType>
<EditionName>Lullaby1.2</EditionName>
<Version>1.2</Version>
<Preview>
<Wap>
<File useContentFile="true" caption="Full Version"/>
</Wap>
<Web>
<File src="/preview/Lullaby_1_2.mp3" caption="Full Version"/>
</Web>
</Preview>
<CustomField customKey="Studio" value="Manchester Studio 3"/>
<CustomField customKey="Rating" value="9.8"/>
<CustomField customKey="SeeAlso" value="5183,1235,8532,4345"/>
</ContentDescriptor>
</ContentSubmission>
|
Content with Separate Preview File
The following example demonstrates a content item using a separate preview file instead of itself. The ZIP file contains the content file, Lullaby_2_1.mid (the original content item used as a preview) and the preview file preview/Lullaby_2_1_Short.mid. The ZIP file also contains the meta/ContentSubmission.xml file.
CODE EXAMPLE A-3 Content Item With a Preview Using a Separate File as the Preview
<?xml version="1.0" encoding="UTF-8"?>
<ContentSubmission>
<Action value="New"/>
<ContentDescriptor>
<ContentType>ringtone</ContentType>
<EditionName>Lullaby2.1</EditionName>
<Version>2.1</Version>
<Preview>
<Wap>
<File src="/preview/LullabySample_2_1_Short.mid" caption="Short Version"/>
</Wap>
<Web>
<File src="/preview/LullabySample_2_1_Short.mid" caption="Hear a short version of the lullaby"/>
</Web>
</Preview>
<CustomField customKey="Rating" value="9.8"/>
</ContentDescriptor>
<WebDescriptor>
<Category>Home:Entertainment:Music</Category>
<WebGroup>
<DisplayName>Lullaby</DisplayName>
<ShortDescription>Memories every time your phone rings</ShortDescription>
<LongDescription>Bring back memories of gentler days every time your phone rings</LongDescription>
</WebGroup>
<CustomField customKey="Artist" value="The Cure"/>
</WebDescriptor>
</ContentSubmission>
|
Edition with Separate Preview Files
The following example demonstrates an edition using a separate preview file instead of itself. The ZIP file contains the content file, Lullaby_2_2.mid (the original content item used as a preview) and the preview files preview/Lullaby_2_2_Short.mid and preview/Lullaby_2_2_Short.mp3. The ZIP file also contains the meta/ContentSubmission.xml file.
CODE EXAMPLE A-4 Edition With a Preview Using a Separate File as the Preview and a Different Preview for the Web
<?xml version="1.0" encoding="UTF-8"?>
<ContentSubmission>
<Action value="Add">
<EditionName>Lullaby2.1</EditionName>
</Action>
<ContentDescriptor>
<ContentType>ringtone</ContentType>
<EditionName>Lullaby2.2</EditionName>
<Version>2.2</Version>
<Preview>
<Wap>
<File src="/preview/LullabySample_2_2_Short.mid" caption="Short Version"/>
</Wap>
<Web>
<File src="/preview/LullabySample_2_2_Short.mp3" caption="Short Version"/>
</Web>
</Preview>
<CustomField customKey="Studio" value="Manchester Studio 3"/>
<CustomField customKey="Rating" value="9.8"/>
<CustomField customKey="SeeAlso" value="5183,1235,8532,4345"/>
<CustomField customKey="Featured" value="true"/>
<CustomField customKey="SimilarArtists" value="VHS or Beta, Siouxie and the Banshees"/>
<CustomField customKey="First Release Format" value="On Vinyl"/>
<CustomField customKey="First Release Date" value="i1989-05-02 00:00:00"/>
<CustomField customKey="ASIN" value="B000002H70"/>
<CustomField customKey="SalesRank" value="1248"/>
<CustomField customKey="Downloads Today" value="34"/>
</ContentDescriptor>
</ContentSubmission>
|
Content with Multiple Preview Files
The following example demonstrates a MIDlet content item with multiple preview files. The ZIP file contains the content files GreatGame_3_1.jad and GreatGame_3_1.jar, and the preview files preview/GreatGameTitle.jpg and preview/GreatGamePlay.jpg. The ZIP file also contains the meta/ContentSubmission.xml file.
CODE EXAMPLE A-5 Content Item with Multiple Previews
<?xml version="1.0" encoding="UTF-8"?>
<ContentSubmission>
<Action value="New"/>
<ContentDescriptor>
<ContentType>midlet</ContentType>
<EditionName>GreatGame3.1</EditionName>
<Version>3.1</Version>
<Preview>
<Wap>
<File src="/preview/GreatGameTitle.jpg" caption="Title Screen"/>
<File src="/preview/GreatGamePlay.jpg" caption="Play Screen"/>
</Wap>
<Web>
<File src="/preview/GreatGameTitle.jpg" caption="Title Screen"/>
<File src="/preview/GreatGamePlay.jpg" caption="Play Screen"/>
</Web>
</Preview>
</ContentDescriptor>
<WebDescriptor>
<Category>Home:Entertainment:Games</Category>
<WebGroup>
<DisplayName>Great Game</DisplayName>
<ShortDescription>Play a great game</ShortDescription>
<LongDescription>Have a great time playing a great game</LongDescription>
</WebGroup>
</WebDescriptor>
</ContentSubmission>
|
Edition with Multiple Preview Files
The following example demonstrates an edition of the MIDlet content item with multiple preview files in different formats. The ZIP file contains the content files GreatGame_3_2.jad and GreatGame_3_2.jar. It also contains the following preview files:
- preview/GreatGameTitle.jpg,
- preview/GreatGamePlay.jpg
- preview/GreatGameTitle.gif
- preview/GreatGamePlayAnimated.gif
The ZIP file also contains the meta/ContentSubmission.xml file.
CODE EXAMPLE A-6 Edition With Multiple Previews
<?xml version="1.0" encoding="UTF-8"?>
<ContentSubmission>
<Action value="Add">
<EditionName>GreatGame3.1</EditionName>
</Action>
<ContentDescriptor>
<ContentType>ringtone</ContentType>
<EditionName>GreatGame3.2</EditionName>
<Version>3.2</Version>
<Preview>
<Wap>
<File src="/preview/GreatGameTitle.jpg" caption="Title Screen"/>
<File src="/preview/GreatGamePlay.jpg" caption="Play Screen"/>
</Wap>
<Web>
<File src="/preview/GreatGameTitle.gif" caption="Title Screen"/>
<File src="/preview/GreatGamePlayAnimated.gif" caption="Animated Play Screen"/>
</Web>
</Preview>
</ContentDescriptor>
</ContentSubmission>
|
Sun Java System Content Delivery Server Content Developer Guide
|
820-1940-10
|
    |
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.