<?xml version="1.0" encoding="utf-8"?>
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:q="http://cnx.rice.edu/qml/1.0" id="None" module-id="" cnxml-version="0.6">
  <title>Adding Multimedia to Your Connexions Content</title>
  <metadata xmlns:md="http://cnx.rice.edu/mdml/0.4">
  <!-- WARNING! The 'metadata' section is read only. Do not edit below.
       Changes to the metadata section in the source will not be saved. -->
  <md:content-id>m12660</md:content-id>
  <md:title>Adding Multimedia to Your Connexions Content</md:title>
  <md:version>1.12</md:version>
  <md:created>2004/12/13 10:07:53 US/Central</md:created>
  <md:revised>2009/03/06 18:53:36.396 US/Central</md:revised>
  <md:authorlist>
    <md:author id="cnxorg">
        <md:firstname/>
        <md:surname>Connexions</md:surname>
        <md:fullname>Connexions</md:fullname>
        <md:email>cnx@cnx.org</md:email>
    </md:author>
    <md:author id="jago">
        <md:firstname>Adan</md:firstname>
        <md:surname>Galvan</md:surname>
        <md:fullname>Adan Galvan</md:fullname>
        <md:email>agalvan@gmail.com</md:email>
    </md:author>
    <md:author id="mhusband">
        <md:firstname>Mark</md:firstname>
        <md:othername>S.</md:othername>
        <md:surname>Husband</md:surname>
        <md:fullname>Mark Husband</md:fullname>
        <md:email>mshusband@comcast.net</md:email>
    </md:author>
  </md:authorlist>
  <md:maintainerlist>
    <md:maintainer id="cnxorg">
        <md:firstname/>
        <md:surname>Connexions</md:surname>
        <md:fullname>Connexions</md:fullname>
        <md:email>cnx@cnx.org</md:email>
    </md:maintainer>
    <md:maintainer id="jago">
        <md:firstname>Adan</md:firstname>
        <md:surname>Galvan</md:surname>
        <md:fullname>Adan Galvan</md:fullname>
        <md:email>agalvan@gmail.com</md:email>
    </md:maintainer>
    <md:maintainer id="mhusband">
        <md:firstname>Mark</md:firstname>
        <md:othername>S.</md:othername>
        <md:surname>Husband</md:surname>
        <md:fullname>Mark Husband</md:fullname>
        <md:email>mshusband@comcast.net</md:email>
    </md:maintainer>
  </md:maintainerlist>
  <md:license href="http://creativecommons.org/licenses/by/1.0"/>
  <md:licensorlist>
    <md:licensor id="jago">
        <md:firstname>Adan</md:firstname>
        <md:surname>Galvan</md:surname>
        <md:fullname>Adan Galvan</md:fullname>
        <md:email>agalvan@gmail.com</md:email>
    </md:licensor>
    <md:licensor id="mhusband">
        <md:firstname>Mark</md:firstname>
        <md:othername>S.</md:othername>
        <md:surname>Husband</md:surname>
        <md:fullname>Mark Husband</md:fullname>
        <md:email>mshusband@comcast.net</md:email>
    </md:licensor>
  </md:licensorlist>
  <md:keywordlist>
    <md:keyword>alternate</md:keyword>
    <md:keyword>audio</md:keyword>
    <md:keyword>flash</md:keyword>
    <md:keyword>image</md:keyword>
    <md:keyword>java applet</md:keyword>
    <md:keyword>movie</md:keyword>
    <md:keyword>mpeg</md:keyword>
    <md:keyword>multimedia</md:keyword>
    <md:keyword>multimedia object</md:keyword>
    <md:keyword>music</md:keyword>
    <md:keyword>quicktime</md:keyword>
    <md:keyword>real audio</md:keyword>
    <md:keyword>sounds</md:keyword>
  </md:keywordlist>
  <md:subjectlist>
    <md:subject>Science and Technology</md:subject>
  </md:subjectlist>
  <md:abstract>An explanation of how to add various types of multimedia objects to your Connexions content. Examples of some of the more common multimedia objects are included.</md:abstract>
  <md:language>en</md:language>
  <!-- WARNING! The 'metadata' section is read only. Do not edit above.
       Changes to the metadata section in the source will not be saved. -->
</metadata>
<featured-links>
  <!-- WARNING! The 'featured-links' section is read only. Do not edit below.
       Changes to the links section in the source will not be saved. -->
    <link-group type="supplemental">
      <link url="http://www.duke.edu/websrv/file-extensions.html" strength="2">MIME Type List</link>
    </link-group>
  <!-- WARNING! The 'featured-links' section is read only. Do not edit above.
       Changes to the links section in the source will not be saved. -->
</featured-links>
<content>
    <section id="intro">
      <title>Introduction</title>
      <para id="intropara1">
	Connexions modules can contain many different types of
	multimedia. This document explains how you can add the
	following types of multimedia objects to a module:
	<list id="l1">
	  <item><link target-id="images" class="cnxn">Images</link></item>
	  <item><link target-id="flash" class="cnxn">Flash objects</link></item>
	  <item><link target-id="movies" class="cnxn">Movies</link></item>
	  <item><link target-id="java" class="cnxn">Java applets</link></item>
	  <item><link target-id="audiofiles" class="cnxn">Audio files</link>  </item>
	  <item><link target-id="labview" class="cnxn">LabVIEW demonstrations</link></item>
	</list>
      </para>
      <para id="intropara2">
	Any type of multimedia object that can be embedded in a Web
	page can be put into a Connexions module using the CNXML
	<code>media</code> tag. The only requirement is that the object must have
	a valid MIME (Multipurpose Internet Mail Extension) type. MIME
	is a protocol that enables the transmission of data, such as
	sound or movies, over the Internet without first having to be
	translated into an ASCII format.  See <link url="http://www.ietf.org/rfc/rfc1341.txt?number=1341" window="new">MIME
	Types</link> for more information. This module contains
	examples of the CNXML entries and their resulting displays for
	the different multimedia objects.
      </para>
      

       	<section id="element-479"><title>Using the media tag</title>
<para id="element-209">
The media tag is used to insert media objects into a CNXML document. The media objects can be images, applets, movies, sounds, or any object with a valid MIME type. Media requires the attributes <code>id</code> and <code>alt</code>, and also has optional <code>src</code>, <code>display</code>, and <code>longdesc</code> attributes. Media must contain at least one of the following children tags: <code>image</code>, <code>audio</code>, <code>flash</code>, <code>video</code>, <code>text</code>, <code>java-applet</code>, <code>labview</code>, <code>object</code>, or <code>download</code>.
</para><para id="element-195">Below is an example of how to use the media tag.</para>

<code id="id45044717" display="block">
&lt;media id="media_example" alt="a dog on a bed"&gt;
   &lt;image mime-type="image/jpeg" src="image1.jpg"/&gt;
&lt;/media&gt;
</code>

<para id="element-172">The above code would result in this display:</para><para id="element-378"><media id="media_example" alt="a dog on a bed">
   <image src="image1.jpg" mime-type="image/jpeg"/>
</media>

</para></section><note id="id45018194">If you need assistance adding
	  a multimedia object, or you have questions about an object
	  not listed in this module, please contact Connexions
	  technical support at <link url="mailto:techsupport@cnx.org">techsupport@cnx.org</link>.
       	  </note>

    </section>
    
    <section id="element-207"><title>Making Media Accessible for All Users</title>
<para id="element-15">
 It is important for authors to remember that not all users are able to experience media the same way.  Visually impaired users will not be able to view graphical content, while those hard of hearing will not be able to experience audio content as intended.  As an author, should always strive to make their content as accessible as possible to all audiences; in addition to allowing more users to enjoy and benefit from your work, you will also make it easier for many organizations required by policy or law to provide materials that meet accessibility standards.
</para>

<para id="alttext"><title>Alt Text and Longdesc</title>Alt text is a required attribute of <code>media</code> and should be used to provide brief textual descriptions of visual content.  These descriptions can be read by screen reading software packages used to assist visually impaired users.  Keep your alt text short but descriptive; imagine somebody trying to describe an image you cannot see and think about the information you would find most important.
   <list id="altlist" list-type="bulleted">
    <item>Don't be redundant.  The user is already aware that this is an image, so don't start your 
          description with "This image is . . . " or "A picture of . . . "
    </item>
    <item>Keep it short and sweet.  Describe only the relevant aspects of the image; it might for 
          example, be important to describe the subject of a photograph as having freckles, but it is
          not necessary to count how many freckles she has on each cheek.
    </item>
    <item>
          Use correct grammar and spelling.  For the majority of users requiring alt text descriptions,
          this content will be read out loud; these descriptions should adhere to the same quality and
          style standards used elsewhere in your work.
    </item>
</list>

</para><para id="element-116"><term>longdesc</term> (or "long description") files are used to describe images that are too complex to summarize in alt text.  Rather than including the description in the CNXML markup, the full, detailed description is contained in a separate file that is linked from the <code>media</code> element.  This allows you to describe the image in as much detail as necessary without needing to keep the description short.  A longdesc file:

<list id="longdesclist" list-type="bulleted">
 <item>Can be any file type, though a basic text-only HTML file is most appropriate.</item>
 <item>Can be loaded into a Connexions module like any other image or resource file.</item>
 <item>Is not a replacement for alt text, but instead is a chance for the author to elaborate on alt text.</item>
 <item>Is only necessary when the image is so complicated that an alt text description is not sufficient to describe it.</item>
</list>

The following example shows how to link to a longdesc file titled <code>quarterly_report_desc.html</code>:

<code id="longdesccode" display="block">&lt;media id="longdesc_example" 
       alt="a brief description of the quarterly report image would go here" 
       longdesc="quarterly_report_desc.html"&gt;
   &lt;image mime-type="image/png" src="quarterly_report.png" /&gt;
&lt;/media&gt;
</code>

In this example, <code>quarterly_report_desc.html</code> would most likely be a simple text file describing the details of the chart, including the data points, overall trends, and any other relevant information.  A screen reader user would have the option of following this link in order to get a detailed understanding of the data that would otherwise be conveyed and understood by sighted users through visual information.</para><para id="element-580"><title>Captioned Video and Audio Transcripts</title>Captioning is another important consideration when dealing with video content.  Users who are hearing impaired may not be able to understand all of the information being conveyed in a video, limiting their access to the material being described.  This can be addressed by submitting videos that are captioned, allowing those users to read along with the spoken materials.  If you are not able to caption your videos, another option is to include audio transcripts of the materials as a module resource that can be easily accessed using a link.  While there are no specific tools or standards for providing this type of content, the important thing to remember is to make it as easy as possible for as many people as possible to access the information you are trying to communicate.</para><note id="id45017921">You can read more about how Connexions addresses accessibility concerns in <link document="m17212" class="cnxn">m17212 - Accessibility Features of Connexions</link>.</note></section><section id="images"><title>Images</title>
      
      <para id="imagepara1">Some of the image file types and their corresponding MIME types used 
	in Connexions modules are:
	<list id="l4" list-type="labeled-item" mark-suffix=" -">
	  <item><label>eps</label>mime-type="application/postscript"</item>
	  <item><label>png</label>mime-type="image/png" </item>
	  <item><label>jpg</label>mime-type="image/jpeg"</item>
	  <item><label>gif</label>mime-type="image/gif"</item>
	</list>
	This list is not all inclusive. Any image with a valid 
	<link url="http://www.duke.edu/websrv/file-extensions.html" window="new">MIME type</link> 
	can be used in a module.
      </para>
      <section id="element-87"><title>Inserting an Image</title>
<para id="imagepara2">
	To embed images in your module, insert CNXML entries similar to the 
	following example into the "index.cnxml" file for your module:
	<code id="id45018053" display="block">
&lt;figure id="figure-01"&gt;
   &lt;title&gt;Example Figure&lt;/title&gt;
   &lt;media id="figureexample" alt="an envelope with a blue page"&gt;
      &lt;image mime-type="image/png" src="Xenveope-blue-on-blue.png"/&gt;
   &lt;/media&gt;
   &lt;caption&gt;A graphic image displayed as a figure.&lt;/caption&gt;
&lt;/figure&gt; 
</code>
      </para>
      
      <para id="imagepara3">The <code>src</code> attribute in the image tag gives the location 
	or source of the image that you want to appear in the module. After
        loading the image file into the 'Files' tab on your module, simply
        provide the full file name (e.g. "<code>envelope-taller.png</code>") to specify 
        which image should be used.
      </para>
      
      <para id="imagepara3a">
	The <link target-id="figure-01" class="cnxn">actual display</link> for the previous 
	CNXML example is:
<figure id="figure-01"><title>Example Figure</title><media id="figureexample" alt="an envelope with a blue page">
      <image src="Xenvelope-blue-on-blue.png" mime-type="image/png"/>
   </media>
   
<caption>A graphic image displayed as a figure.</caption></figure>
       </para>
</section>


<section id="resize_images"><title>Adjusting the Size of the Image</title><para id="element-559">You can use optional size attributes to control the size of the image displayed in both online and print versions of the content.  There are a few things to keep in mind when specifying image sizes in CNXML:

<list id="sizenotes" list-type="bulleted">
 <item>
  Images that are displayed larger than their original size will look fuzzy or grainy.
 </item>
 <item>
  Resizing an image online relies on the web browser to determine how to redraw the image.  This
  can sometimes lead to unpredictable and undesirable results that vary from browser to browser.
  Whenever possible, resize the image to the desired dimensions before loading the file into 
  Connexions to avoid this problem.
 </item>
 <item>
  It is not necessary to specify both the height and width of an image.  If you supply only one
  of these, the other value will be calculated to preserve the same height-width ratio as the
  original image.  You only need to supply both when you wish to change the shape of the image.
 </item>
 <item>
  You can choose to resize an image for online viewing, printing, or both by supplying the 
  corresponding attributes as described below.  Sizes specified for one version have no effect 
  on the other.  If you do not supply sizing information, the image will be displayed in its original size by default.
 </item>
</list></para>

<section id="element-42"><title>Adjusting the Size of an Online Image</title>

<para id="add_param">
You can adjust the size of the image in the on-line version of your document by using the <code>height</code> and <code>width</code> attributes.
</para>

<para id="original_t_m">
The following code will display the image in its original, default size:
</para>

<code id="original_t_m_code" display="block">&lt;figure id="element-439"&gt;
   &lt;media id="tajmahal" alt="The Taj Mahal"&gt;
      &lt;image src="TajMahal_medium.jpg" mime-type="image/jpeg"/&gt;
   &lt;/media&gt;
   &lt;caption&gt;
      The photograph of the Taj Mahal in this figure and the following figures
      was taken by &lt;link url="http://www.flickr.com/photos/babasteve/"&gt;Steve
      Evans&lt;/link&gt;.  It is licensed for public use under the Creative Commons 
      Attribution License.
   &lt;/caption&gt;
&lt;/figure&gt;
</code>

<para id="original_t_m_result">
This code results in the following image:
</para>

<figure id="element-439"><media id="tajmahal" alt="The Taj Mahal">
    <image src="TajMahal_medium.jpg" mime-type="image/jpeg"/>
  </media>
  
<caption>The photograph of the Taj Mahal in this figure and the following figures was taken by <link url="http://www.flickr.com/photos/babasteve/" window="new">Steve
	  Evans</link>.  It is licensed for public use under the
	  Creative Commons Attribution License.</caption></figure>



<para id="element-702">The following CNXML code shows how to display the same image with a specific size (in this case, 250 pixels wide by 250 pixels tall):
</para>

<code id="id449730411" display="block">&lt;figure id="figure_size_adjusted"&gt;
   &lt;media id="TajMahal" alt="The Taj Mahal"&gt;
      &lt;image mime-type="image/jpeg" 
             src="TajMahal_medium.jpg"
             height="250"
             width="250" /&gt;
   &lt;/media&gt;
&lt;/figure&gt;
</code>

<para id="size_adjust_results">
The resulting figure is displayed below:
</para>

<figure id="figure_size_adjusted">
   <media id="TajMahal" alt="The Taj Mahal">
      <image mime-type="image/jpeg" src="TajMahal_medium.jpg" height="250" width="250"/>
   </media>
</figure>

<para id="size_pixels">
When specifying <code>width</code> and <code>height</code>, enter the value in pixels.  For example, the code above will produce a print image that is 250 pixels tall and 250 pixels inches wide.

<note id="id323245" type="tip">
It is not necessary to specify both the <code>height</code> and <code>width</code> of an image.  If you supply only one of these, the other value will be calculated to preserve the same height-width ratio as the original image.  You only need to supply both when you wish to change the shape of the image.
</note>

<note id="id-123123" type="tip">The <code>height</code> and <code>width</code> attributes do not affect the size of the image in the print (PDF) version of the module.  To change the printed size of the image, use the <code>print-height</code> attribute (see below).  You can use any combination of print and online sizing attributes for an image.
</note>

</para>



</section>
<section id="element-268"><title>Adjusting the Size of a Printed Image</title>

<para id="pw_param">You can adjust the size of the image in the print (PDF) version of your document by using the <code>print-width</code> attribute.  The height of the image will be adjusted proportionately to the width set in <code>print-width</code>.  There is no <code>print-height</code> attribute.
</para>
<para id="element-70888">The following CNXML code shows how to display the Taj Majal image above with a specific printed size (in this case, 4.5 inches wide):
</para>

<code id="id44973041" display="block">&lt;figure id="figure_size_adjusted"&gt;
   &lt;media id="TajMahal" alt="The Taj Mahal"&gt;
      &lt;image mime-type="image/jpeg" 
             src="TajMahal_medium.jpg"
             print-width="4.5in" /&gt;
   &lt;/media&gt;
&lt;/figure&gt;
</code>

<para id="print-attribute-notes">When specifying <code>print-width</code> include the unit of measurement in the value.  This can be <code>in</code> (inches), <code>cm</code> (centimeters), <code>pt</code> (points) or <link window="new" url="http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-86.html">any other value supported in LaTeX</link>.  The code above will produce a print image that is 4.5 inches wide and a height proportional to its original dimensions.</para>




<note id="id-1231234" type="tip">The <code>print-width</code> attribute does not affect the size of the image when viewing the version of the module.  To change the online size of the image, use the <code>height</code> and <code>width</code> attributes.  You can use any combination of print and online sizing attributes for an image.
</note>

      </section>


      
      <section id="clickable"><title>Creating a Linked Thumbnail Image</title>
	
	<para id="linked">
	  A thumbnail is a small version of an image that, when clicked, displays the larger, full-size version of that image. You can create a thumbnail in your modules by completing the following steps:
	  <list id="tlist" list-type="enumerated">
	    <item>Using image-editing software, create a thumbnail-sized version of your image file.  Make sure to change the name of the thumbnail image so that you know which is which (e.g. "myimage_thumb.png").</item>
            <item>Add the thumbnail image to your module using the files tab as you would with any image fie.</item>
	    <item>Create the <code>media</code> and <code>image</code> elements as you would normally do for a full-sized image.</item>
	    <item>Use the optional <code>thumbnail</code> attribute to the <code>image</code> element as shown in the example below.
	    </item>
	  </list>
	  Here is an example of the CNXML code required to include a thumbnail 
	  image that links to a full size version:
	  <code id="id45086195" display="block">&lt;figure id='thumbnail'&gt;
   &lt;media id="thumbnailmedia" alt="The Taj Mahal (thumbnail version)"&gt;
      &lt;image mime-type='image/jpeg' 
             src='TajMahal_medium.jpg'
             thumbnail='TajMahal_Thumb.jpg'/&gt;
      &lt;/image&gt;
   &lt;/media&gt;
&lt;/figure&gt;
	  </code>
	This code results in the following linked image:
	   <figure id="thumbnail"><media id="thumbnailmedia" alt="The Taj Mahal (thumbnail version)"><image src="TajMahal_medium.jpg" mime-type="image/jpeg" thumbnail="TajMahal_Thumb.jpg"/></media>
	    
	  </figure>
	</para>
      </section>
      

    </section>

     <section id="print">
	<title>Including Alternate Media for Print</title>
	<para id="printp">Connexions allows you to insert an alternate 
	  media file in your module that can be formatted and sized 
	  specifically for the print version of your content.  For example,
          you may want to provide a color image for online use and a black-and-white image for print.  You can also use this feature to provide alternate 
          media types, such as using a Java applet for online use and an image 
          for print.
	</para>  
	<para id="printp2">To create an alternate image for print, 
            simply include two <code>image</code> elements (or, say, a <code>video</code> element and an <code>image</code> element) inside the
            <code>media</code> tag.  The first element will be used in the online
            version of the module, while the second will be used for the print
            version.
        </para>
        <para id="printmedia">
	  The following code gives one example for including an alternate 
          print image.  In this case, online users will see <code>image.png</code>, while <code>image.eps</code> will be used for the print version of the module.

	  <code id="id45086439" display="block">
&lt;figure id='printimage'&gt;
   &lt;media id="print_image_example"&gt;
      &lt;image mime-type='image/png' src='image.png'/&gt;
      &lt;image mime-type='application/postscript' src='image.eps'/&gt;
   &lt;/media&gt;
&lt;/figure&gt;
          </code>
	  <note id="id45086449" type="Tip">You can use any two media objects in this way to create print 
          alternatives.  When two media objects are included inside a 
          <code>media</code> element, the first will be used for the online
          version and the second will be used for the print version.
	  However, if the first element in a media is a <code>longdesc</code> element, the second element will be used online, and the third element will be used for print.</note>
	</para>
      </section>


<section id="element-subfigs">
       <title>Using Subfigures </title><para id="imagepara4">You can place two or more images within the same figure using the 
	<code>subfigure</code> tag. This is useful when you have two 
	related images that you want to display side-by-side or one
	above the other. To display two images within the same figure, 
	insert CNXML entries similar to the following example into the 
	"index.cnxml" file for your module:
<code id="id45086524" display="block">&lt;figure id="figure-2" orient="horizontal"&gt;
   &lt;subfigure id="subfigure-1"&gt;
      &lt;title&gt;Blue on Blue&lt;/title&gt;
      &lt;media id="sub_example" alt="An envelope with a blue page"&gt;          
         &lt;image mime-type="image/png" src="Xenvelope-blue-on-blue.png"/&gt;
         &lt;caption&gt;Subfigure 1.&lt;/caption&gt;
      &lt;/media&gt;
   &lt;/subfigure&gt;
   &lt;subfigure id="subfigure-2"&gt;
      &lt;title&gt;Orange on White&lt;/title&gt;
      &lt;media id="sub_example2" alt="An envelope with a white page"&gt;
         &lt;image mime-type="image/png" src="Xenvelope.png"/&gt;
         &lt;caption&gt;Subfigure 2.&lt;/caption&gt;
      &lt;/media&gt;
   &lt;/subfigure&gt;
   &lt;caption&gt;Two images displayed horizontally in one figure.&lt;/caption&gt;
&lt;/figure&gt;
</code>
      </para>
      
      <para id="imagepara5">The resulting figure is displayed below:

	<figure id="figure-2" orient="horizontal"><subfigure id="subfigure-1">
          <title>Blue on Blue</title>
          <media id="sub_example" alt="An envelope with a blue page"><image src="Xenvelope-blue-on-blue.png" mime-type="image/png"/></media>
          <caption>
          Subfigure 1.
          </caption>
        </subfigure>
        <subfigure id="subfigure-2">
          <title>Orange on White</title>
          <media id="sub_example2" alt="An envelope with a white page"><image src="Xenvelope.png" mime-type="image/png"/></media>
          <caption>
            Subfigure 2.            
          </caption>
	  </subfigure>
	  <caption>Two images displayed horizontally in one figure.</caption>
	</figure>
      </para>
      
      <para id="imagepara6">
	The <code>orient</code> determines how the subfigures are arrange
        respective to one another.  This attribute can have a value of either
        <code>horizontal</code> or <code>vertical</code>.
      </para>
</section>



 
</section>

    <section id="flash">
      <title>Flash Objects</title>
      <para id="flpara">
	You can insert Flash objects in your module. Here is an example of 
	the CNXML code required to include a Flash object:
	<code id="id45068286" display="block">&lt;figure id='flashfig'&gt;
   &lt;media id="new_flash" alt="flash animation of the connexions logo"&gt;
      &lt;flash mime-type="application/x-shockwave-flash" 
             src="flash.swf"
             height="250"
             width="250" /&gt;
      &lt;/flash&gt;
   &lt;/media&gt;
   &lt;caption&gt;"Welcome to Connexions" example Flash object.&lt;/caption&gt;
&lt;/figure&gt;
</code>
	The <link target-id="flashfig" class="cnxn">Flash object</link> appears in your 
	module the same way in which a movie or an image appears: 
          <figure id="flashfig"><media id="new_flash" alt="flash animation of the connexions logo"><flash src="flash2.swf" mime-type="application/x-shockwave-flash" height="250" width="250"/></media>
	  
          <caption>"Welcome to Connexions" example Flash object.</caption></figure>
      </para>
	<note id="id45068361">The example above is enclosed within <code>figure</code> tags 
	to allow captions for explanation purposes. The <code>figure</code> 
	tags are not required to include these media objects in a module.</note>
    </section>

    <section id="movies">
      <title>Movies</title>
      <para id="moviep">Movies can be added to your module using the same basic structure as
        with other media types.
	<code id="id45068458" display="block">&lt;figure id='moviefig2'&gt;
   &lt;media id="movie" alt="Building on the Past"&gt;
      &lt;video mime-type="video/mpeg" 
             src="Building_on_the_Past.mpg"
             width="350"
             height="300"
             autoplay="false" /&gt;
      &lt;/video&gt;	  
   &lt;/media&gt;
   &lt;caption&gt;
     The Creative Commons movie: "Building on the Past". 
     Click the Play button to start the movie.
   &lt;/caption&gt;
&lt;/figure&gt;
</code>
	The movie is displayed below:
	<figure id="moviefig2">
	  <media id="movie" alt="Building on the Past"><video src="Building_on_the_Past.mpg" mime-type="video/mpeg" autoplay="false" width="350" height="300"/></media>
	  <caption>The Creative Commons movie: "Building on the Past". 
	    Click the Play button to start the movie.</caption>
	</figure>
      </para>
	<note id="id45068540">The example above is enclosed within <code>figure</code> tags 
	to allow captions for explanation purposes. The <code>figure</code> 
	tags are not required to include these media objects in a module.</note>
    </section>

    <section id="java">
      <title>Java Applets</title>
      <para id="javap">Java applets are another media type you can use in your Connexions 
        modules:
<code id="id45068596" display="block">
&lt;figure id="javafig"&gt;
   &lt;media id="java_example" alt="a complex sinusoid"&gt;
      &lt;java-applet type="application/x-java-applet"
                   code="PhasorDemo.class"
                   width="430"
                   height="500" /&gt;
      &lt;/java-applet&gt;
   &lt;/media&gt;
   &lt;caption&gt;3D Animation of a Complex Sinusoid. Click the Run button to start the animation.&lt;/caption&gt;
&lt;/figure&gt;
</code>
	The <link target-id="javafig" class="cnxn">actual display</link> for the previous 
	CNXML example is:
	<figure id="javafig">
	  <media id="java_example" alt="a complex sinusoid"><java-applet code="PhasorDemo.class" mime-type="application/x-java-applet" height="500" width="430"/></media>
	  <caption>3D Animation of a Complex Sinusoid. Click the Run button 
	    to start the animation.</caption>
        </figure>
        If the graphic does not appear in the figure above, you may 
        need to install or upgrade the Java plug-in on your computer. Please 
        go to <link url="http://java.com">java.com</link> to download the 
        latest version of the Java plug-in.
      </para>
	<note id="id45068687">The example above is enclosed within <code>figure</code> tags 
	to allow captions for explanation purposes. The <code>figure</code> 
	tags are not required to include these media objects in a module.</note>
    </section>

    <section id="audiofiles">
      <title>Audio Files</title>
      <para id="audiop">
	Audio files such as mp3, real audio, and wav files can be inserted 
	into your module quickly and easily. To include audio files in your 
	document, upload the corresponding audio file and include code similar 
	to the following in your "index.cnxml" document:
<code id="id45068747" display="block">
&lt;figure id='musicscale'&gt;
   &lt;media id="music_example" alt="chromatic scale slurred"&gt;
      &lt;audio mime-type="audio/x-wav" src="chromatic_slurred.wav"/&gt;
   &lt;/media&gt;
   &lt;caption&gt;A chromatic scale performed on clarinet by Michael Lawrence.&lt;/caption&gt;
&lt;/figure&gt;
</code>	  
      </para>
      <para id="parascale">
	The <link target-id="musicscale" class="cnxn">actual display</link> for the previous 
	CNXML example is:
      	 <figure id="musicscale"><media id="music_example" alt="chromatic scale slurred"><audio src="chromatic_slurred.wav" mime-type="audio/x-wav"/></media>
	  
         <caption>A chromatic scale performed on clarinet by Michael Lawrence.</caption></figure>
      </para>
	<note id="id45068816">The example above is enclosed within <code>figure</code> tags 
	to allow captions for explanation purposes. The <code>figure</code> 
	tags are not required to include these media objects in a module.</note>
    </section>

    <section id="labview">
      <title>LabVIEW Demonstrations</title>
      <para id="labviewp">
	For information on including LabVIEW demonstrations in your 
	module, please see 
	<link document="m11601" class="cnxn">Creating LabVIEW demonstrations for Connexions</link>.
      </para>
    </section>
 
    <section id="paramsect">
      <title>Parameters</title>
      <para id="parampara1">
	Some multimedia objects need options or parameters to display 
	properly. You can pass this information to the multimedia objects 
	with the <code>param</code> tag. 
        The <code>param</code> tag allows you to specify the run-time 
        settings for an object inserted into XHTML documents.
      </para>
      
      <para id="parampara2">
        Here is an example of a <code>param</code> tag for an audio (wav) object:
      <code id="id45068982" display="block">&lt;figure id="audio2"&gt;
  &lt;media id="music_example2" alt="Slurred chromatic scale"&gt;      
    &lt;audio mime-type="audio/x-wav" src="chromatic_slurred.wav"&gt;
      &lt;param name="title" value="Chromatic Scale"/&gt;
    &lt;/audio&gt;
  &lt;/media&gt;
&lt;/figure&gt;</code>
</para><para id="eip-850">The <link target-id="audio2">actual display</link> for the previous example is
<figure id="audio2">
  <media id="music_example2" alt="Slurred chromatic scale">
    <audio mime-type="audio/x-wav" src="chromatic_slurred.wav">
      <param name="title" value="Chromatic Scale"/>
    </audio>
  </media>
</figure>
</para>
  </section>

  </content>
  
</document>
