Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to get the timedMetadata from CachingPlayerItem #34

Open
satyres opened this issue Mar 28, 2020 · 1 comment
Open

is there a way to get the timedMetadata from CachingPlayerItem #34

satyres opened this issue Mar 28, 2020 · 1 comment

Comments

@satyres
Copy link

satyres commented Mar 28, 2020

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

@jkcarraher
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants