AVPlayer handle 403 error

Hello,

Is there a way to handle 403 error returned by the server, eg token expired ?

Cannot find any information about this and everything that I tried wasn't working (addObserver, NotificationCenter with .AVPlayerItemNewErrorLogEntry, AVPlayerItemPlaybackStalled, ...)

Thank you very much.

AVPlayer handle 403 error
 
 
Q