SwiftVideoBackground icon indicating copy to clipboard operation
SwiftVideoBackground copied to clipboard

How to define that video from Web is loading and how can i display it to user?

Open IKorabel opened this issue 3 years ago • 4 comments

Hi, your library is cool. However, i would like to know how to track that video from Web is loading? I want to show to user something like loading spinner during the video loading.

IKorabel avatar Jul 09 '22 13:07 IKorabel

Hello, we do not currently support this functionality, but it is possible. You can observe the timeControlStatus notification on the AVPlayer and show/hide the loading spinner when the player is not playing.

If this is something you're interested in, you can definitely open a PR to support this!

dingwilson avatar Jul 10 '22 16:07 dingwilson

I have the same issue, can you add supporting this function in your library? or can you help us to add this function?

sepehr-keyhani avatar Feb 03 '23 19:02 sepehr-keyhani

I fixed the issue with this link: https://www.ungapps.com/2019/11/add-loading-activityindicator-in.html

sepehr-keyhani avatar Feb 03 '23 20:02 sepehr-keyhani

Hey @sepehr-keyhani! We welcome contributions to the codebase! You should commit your change to the repo so others can benefit from your findings. :)

dingwilson avatar Feb 03 '23 20:02 dingwilson