Reputation:
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
Reputation: 2917
Use CMTimeRangeCopyAsDictionary to create a CFDictionaryRef
from your CMTimeRange, and use CMTimeRangeMakeFromDictionary
to get your CMTimeRange
back from the dictionary.
Upvotes: 1
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