I\'m trying to stop activityIndicator when AVPlayer start playing music, and also start activityIndicator when again AVPlayer start (loading, buffering). It little bit works, th
Regarding second problem i.e. "And also it not start again activityIndicator when it again (loading, buffering)"
I think a workaround for that could be one of following:-
a)
func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath){
print("You selected cell #\(indexPath.item)!")
//Start activityView Animation when user clicks on any item which won't be buffered by default
activityView.startAnimating()
}
or
b)
var selectIndex:Int = -1 {
didSet {
//Start activityView Animation when user clicks on any item which won't be buffered by default
activityView.startAnimating()
}
}