Instance Property

sampleReferenceBaseURL

The base URL sample references are relative to.

Declaration

@property(nonatomic, copy) NSURL *sampleReferenceBaseURL;

Discussion

This property is only valid for file types that support writing sample references, such as QuickTime Movie files. If the value of this property can be resolved as an absolute URL, the sample locations written to the file when appending sample references will be relative to this URL. The URL must point to a location that is in a directory that is a parent of the sample reference location.

For example: setting the sampleReferenceBaseURL property to file:///User/johnappleseed/Movies/ and appending sample buffers with the kCMSampleBufferAttachmentKey_SampleReferenceURL attachment set to file:///User/johnappleseed/Movies/data/movie1.mov will cause the sample reference data/movie1.mov to be written to the movie.

See Also

Inspecting a Writer Input

mediaType

The media type of the samples that are appendable to the input.

outputSettings

The settings used for encoding the media appended to the output.

sourceFormatHint

A hint about the format of the buffers to appended.