Setting Video Metadata

This tutorial describes how to set video metadata.

Purpose

The purpose of this tutorial is to show you how to set and retrieve metadata entries for a video clip.

Required Background

The Video Client Overview introduces the video client utilities.

Introduction

The video recorder utility is used to record video clips to files, descriptors or URLs and manipulate embedded meta data. This functionality is implemented by the CVideoRecorderUtility class.

Using Video Metadata

The following tasks will be covered in this tutorial:

Basic Procedure

The high level steps to set and retrieve metadata entries are shown here:

  • To set various metadata entries, use the CVideoRecorderUtility::AddMetaDataEntryL() function. The metadata entries are stored within the clip itself and can be retrieved or modified anytime during the recording.This is usually used to store information such as copyright information, creator, creation date and so on.

    The following code adds the copyright information to the video clip:

             
              
             
             // Create Meta Entries
    _LIT(name,"<Copyright>");
    _LIT(data,"<Symbian ©) 2002>");
    CMMFMetaDataEntry* metaData = NULL;
    metaData = CMMFMetaDataEntry::NewL(name,data);
    CleanupStack::PushL(metaData);
    // Add the meta data entry
    TRAP(err, iVideoRecorderUtility->AddMetaDataEntryL(*metaData));
            
  • To retrieve specific metadata entries from a video clip, use the CVideoRecorderUtility::MetaDataEntryL() function.