How to play only one video in ion-slide-box


#1

Hello there guys !

I have a tiny problem ! I’m using ion slide box to display news with ng-repeat, on each ion slide I have a video (iframe) ! everything is working fine.

Now I want to play only one video, on my case I can play all the videos which is really a big issue.

I want when I swipe I reload the iframe but I don’t know how to do that :smile:

For exaple for each slidechange I want to reload the iframe like

$scope.slideHasChanged = function(index) { }

I’m not sure if you have an idea on how to do that ?