Thanks for this amazing piece of code.
i want to be able to get the timedMetadata from CachingPlayerItem , i've added
addObserver(self, forKeyPath: "timedMetadata", options: NSKeyValueObservingOptions.new, context: nil)
and
if keyPath != "timedMetadata" { return }
let data: AVPlayerItem = object as! AVPlayerItem
for item in data.timedMetadata! {
print("from caching = \(item.value!)")
}
but i can't get anything can you please help me
regards
Thanks for this amazing piece of code. i want to be able to get the timedMetadata from CachingPlayerItem , i've added
addObserver(self, forKeyPath: "timedMetadata", options: NSKeyValueObservingOptions.new, context: nil)
andbut i can't get anything can you please help me regards