简体   繁体   中英

How to handle timeout request failed in AVPlayer?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM