Documentation Center

Supporting additional media types

SDL LiveContent S1000D has built in support for many media types. Each media type is represented as an object in LiveContent. You may, however, have a need to use a media type not natively supported in LiveContent. In this case, you can extend the list of supported media types to suit your needs.

About this task

You can modify your LiveContent configuration to recognize a media type that is not supported in SDL LiveContent S1000D by default. This involves copying the cvMedia.js script, copying a code snippet of an existing media object (to be used as a template), modifying the new media object's attributes, and then saving your modifications. See "Configuring S1000D" in the SDL LiveContent S1000D Implementation Manual for more information.

Procedure

  1. From the LiveContent\templates\Fullsupport\etc\scripts\ directory, copy the cvMedia.js file to your custom directory.
  2. In a text editor, open the cvMedia.js file that you copied.
  3. In the cvMedia.js file, copy the code snippet of an existing media object, and paste it at the end of the file.
    The code looks like the following:
    loadMMObjectAttributes: function() 
    {
    
     // Create an array of objects containing multimedia 
     // "OBJECT" tag attributes.
     .
     .
     .                          
                
     "mmExtension": "mov",
     "mmCatagory": "video",
     "mmType": "video/quicktime",
     "mmClassId": "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",
     "mmCodebase": "http://www.apple.com/qtactivex/qtplugin.cab",
     "autoplay": "autoplay",
     "fullscreen": "",
     "controls": "controller",
     "mediapath": "src"
    }
  4. Replace the values of the following fields with the data you gleaned from the web or another source:
    • mmExtension
    • mmCatagory
    • mmType
    • mmClassId
    • mmCodebase
    • autoplay
    • fullscreen
    • controls
    • mediapath
  5. Edit the attributes of this new section in congruence with this table.
    Attribute to modifyAttribute's purposeExample
    mmExtensionFile extension"mpg"
    mmCatagoryMedia type"audio"
    mmTypeMime type"video/quicktime"
    mmClassIdClassID used by ActiveX controls"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    mmCodebaseURL to ActiveX control"http://www.apple.com/qtactivex/qtplugin.cab"
    autoplayAttribute for launching automatically"autoplay"
    fullscreenAttribute to display full screen"fullscreen"
    controlsAttribute to display controls"controller"
    mediapathThe path to the ICN file, which LiveContent determines at run time"src"
  6. Save the cvMedia.js file to your custom directory, and then exit your editor.