You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get notified when each card is shown in the screen? A delegate method perhaps.
The reason is, it's a little different than displaying static views or images. Because view/image cards are sort of "preloaded", right? When I add video player cards in the view generator, I have to set it to play player.play() right within the generator. The problem is then all the preloaded videos also get played simultaneously.
If there's a way to get notified when each card is displayed, maybe I could make it play when that happens.
The text was updated successfully, but these errors were encountered:
Inside DMSwipeCardsView.swift locate the two methods cardSwipedLeft & cardSwipedRight. In both methods, before calling loadNextCard, you should have the card that now has become on top somewhere in the self.loadedCards array. Probably it's the last element. You could then force cast it to your own class & call your play method.
Hi,
I have to play a bunch of videos retrieved from the internet on cards. This is my view generator.
Is there a way to get notified when each card is shown in the screen? A delegate method perhaps.
The reason is, it's a little different than displaying static views or images. Because view/image cards are sort of "preloaded", right? When I add video player cards in the view generator, I have to set it to play
player.play()
right within the generator. The problem is then all the preloaded videos also get played simultaneously.If there's a way to get notified when each card is displayed, maybe I could make it play when that happens.
The text was updated successfully, but these errors were encountered: