I am looking for playing a remote mp4 video on tvOS with AVPlayer
. (I am already successful in playing the video but there is one confusion) I have looked different forums and there is one method that i can use with AVURLAsset and the method is
func loadValuesAsynchronouslyForKeys(_ keys: [String],
completionHandler handler: (() -> Void)?)
I have seen people are using playable, duration and tracks
as keys. I don't know what these keys do. My question is that where i can check documentation for the different keys for this function.
Also i don't understand what this line means in apple documentation
A “key” is any property in a class that implements this protocol.