.Hi. I'm wondering if anyone else has gotten this error and what they may've done about it.
I'm simply loading the movie asset into the player, like so:
NSURL *assetURL = [NSURL URLWithString:encodedUrlString];
AVPlayerItem *item = [AVPlayerItem playerItemWithURL:assetURL];
[self.player replaceCurrentItemWithPlayerItem:item];but the video won't load. I've been able to extract the following from the errorLog.
2018-09-11 13:36:30.239589-0400 tvOSApp[757:2933640] AVPlayerItem Error:
#Version: 1.0
#Software: AppleCoreMedia/1.0.0.15M73 (Apple TV; U; CPU OS 11_4_1 like Mac OS X; en_us)
#Date: 2018/09/11 13:36:30.030
#Fields: date time uri cs-guid s-ip status domain comment cs-iftype
2018/09/11 13:36:30.030 skd://myid.keydelivery.eastus.media.azure.net/FairPlay/?kid=81de6e48-fake-ckey-bc88-1234567890ab 6CFC0495-EF90-4DE7-87DE-4D4F33CEE105 - -1002 "CoreMediaErrorDomain" "unsupported URL" wifi-infraI've been wracking my brain trying to find an answer to this problem. I don't quite understand why this is an unsupported URL, especially when the documentation at Azure Media Services states that iOS (and I assume by extension, tvOS) only allows skd://.
Two more things. One is that I was using code I'd found elsewhere to utilize AVAssetResourceLoaderDelegate, but to no avail. Additionally, trying to Google® an answer just has my search correcting to "SDK" issues but I digress. 😂
If you can help out, please do. I've spent the latter half of the day trying to figure this out.