Is it still true with the iOS 13 that AVPlayer won't see registered
protocol class?
Yes.
Well, no, but also yes. AVFoundation has very specific cases where it goes out of its way to use NSURLProtocol
subclasses but that’s just a compatibility measure. There are better ways to do this. More on that below.
If yes, why the iOS simulator works?
Because the simulator is not an emulator. The simulator takes all sorts of shortcuts and, IIRC, one of those is that AV playback runs in process.
Taking a step back, using an NSURLProtocol
subclass for this sort of thing is no longer a good option. Rather, AVFoundation has its own custom asset loading mechanism, centred around the AVAssetResourceLoader
class. I recommend that you explore that option.
ps I’m not an expert in this technology because it’s handled by other folks here in DTS. I’ve retagged this thread to add AVFoundation in the hope that folks who do know this API might respond to any follow-up questions you have. Failing that, you can always open a DTS tech support incident to get help.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"