I am trying to load remote video URL in AVPlayer.
If there is a poor Internet connection, I want to show an alert on timeout request failed.
Well, you should add an observer for the status. Check this link about AVPlayer Network Issues . The details of AVPlayer you can find on official documentationAVPlayer Documentation .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.