How can I ensure that all other videos on a page are paused when I start playing a video in the ionic framework?
My videos come from various sources, not just YouTube.
This is a snippet of my HTML code:
<ion-list>
<div class="card">
<ion-item ng-repeat="module in co.Modules">
{{module.name}}
<div class="video-container">
<iframe allowscriptaccess="always" ng-src="{{module.link}}" frameborder="0" allowfullscreen></iframe>
</div>
</ion-item>
</div>
<div class="col text-center">
<button class="button button-large button-positive" ng-click="vm.onclick(co.course_name)" >
Take Assesment
</button>
</div>
</ion-list>