AVMutableMetadataItem Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AVFoundation.framework
Availability
Available in iOS 4.0 and later.
Declared in
AVMetadataItem.h
Related sample code

Overview

AVMutableMetadataItem is a mutable subclass of AVMetadataItem that lets you build collections of metadata to be written to asset files using AVAssetExportSession.

You can initialize a mutable metadata item from an existing AVMetadataItem object or with a one or more of the basic properties of a metadata item: a key, a key space, a locale, and a value.

Tasks

Creating a Mutable Metadata Item

Key and Key Space

Values

Properties

duration

Indicates the metadata item’s duration.

Availability
  • Available in iOS 4.2 and later.
See Also
@property (readwrite) CMTime duration;
Declared In
AVMetadataItem.h

extraAttributes

Provides a dictionary of the metadata item’s additional attributes.

@property(readwrite, copy) NSDictionary *extraAttributes
Availability
  • Available in iOS 4.0 and later.
Declared In
AVMetadataItem.h

key

Indicates the metadata item’s key.

@property(readwrite, copy) id<NSObject, NSCopying> key
Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
AVMetadataItem.h

keySpace

Indicates the key space of the metadata item’s key.

@property(readwrite, copy) NSString *keySpace
Discussion

This is typically the default key space for the metadata container in which the metadata item is stored.

Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
AVMetadataItem.h

locale

Indicates the metadata item’s locale.

@property(readwrite, copy) NSLocale *locale
Discussion

The locale may be nil if no locale information is available for the item.

Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
AVMetadataItem.h

time

Indicates the metadata item’s timestamp.

@property(readwrite) CMTime time
Availability
  • Available in iOS 4.0 and later.
See Also
Declared In
AVMetadataItem.h

value

Indicates the metadata item’s value.

@property(readwrite, copy) id<NSObject, NSCopying> value
Availability
  • Available in iOS 4.0 and later.
Related Sample Code
Declared In
AVMetadataItem.h

Class Methods

metadataItem

Returns a new mutable metadata item.

+ (AVMutableMetadataItem *)metadataItem
Return Value

A new mutable metadata item.

Availability
  • Available in iOS 4.0 and later.
Declared In
AVMetadataItem.h