I have a Vimeo iframe video in Bootstrap video. I need to have it start playing when I trigger modal and stop playing when a modal is closed. Currently I can have in start p
Refer to Vimeo's embedding documentation.
There is an attribute that you can set called autoplay. They note that it might not work on some devices, but setting this attribute to 1 (or maybe true) should help.
The code might look something like this:
jQuery('#myModal .modal-body iframe').attr({
src: 'the-source-code',
autoplay: 1
});