VLCMedia.metaDictionary not being updated
Some knowledge to begin with:
- I'm using this prebuilt binary of the framework (I was not able to compile from source myself)
- My application is being written in Swift
- My application is for macOS/OS X
Okay, so on with it...
After initializing a VLCMedia
object, it's metaDictionary
is empty, or only has the artworkURL
key. I've tried implementing my own subclass of VLCMediaDelegate
, I've attempted using VLCMedia.parse()
, as well as VLCMedia.synchronousParse()
, but still no luck.
This is a critical bug however, because VLCMedia.metadata(forKey:)
does retrieve the metadata as needed.
However, in Felix's blog post about VLCKit and metadata (as well as in the VLCKit docs), it's recommends using the metaDictionary
over the VLCMedia.metadata(forKey:)
method for performance reasons.
As I stated, this isn't a critical issue for me, since VLCMedia.metadata(forKey:)
works, but performance is always a key factor.