user3300454
user3300454

Reputation:

How we can store CMTimeRange into NSMutableArray

I need to store CMTimeRange of different videos in array later i will merge these videos.

please answer if anybody know about it.any answer will be appreciated.....

Upvotes: 2

Views: 516

Answers (2)

Emmanuel
Emmanuel

Reputation: 2917

Use CMTimeRangeCopyAsDictionary to create a CFDictionaryRef from your CMTimeRange, and use CMTimeRangeMakeFromDictionary to get your CMTimeRange back from the dictionary.

Upvotes: 1

Zack Brown
Zack Brown

Reputation: 6028

It should be possible to use the CMTimeRangeCopyAsDictionary function and save an array of dictionaries or failing that, you could save each time range using NSValue perhaps?

Upvotes: 0

Related Questions