I'm passing the url into the embed ( #meuid ) like this:
<script>
$('#treinamentos').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget)
var nome = button.data('nome')
var video = button.data('video')
$('#nmTreinamento').text(nome);
$('#meuid').attr('src', 'https://www.youtube.com/watch?v=VaKvZzKyI1s');
})
</script>
The modal with embed
takes the url but does not display the video:
<div class="modal fade" id="treinamentos" tabindex="-1" role="dialog" aria-labelledby="alterarLabel" style="z-index: 1100;">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="exampleModalLabel">Deseja excluir o Treinamento ? </h4>
</div>
<div class="modal-body">
<label for="nmTreinamento" id="nmTreinamento"></label>
<embed id='meuid'
type="application/x-shockwave-flash" fs=1
allowfullscreen="true" allowscriptaccess="always"
width="940" height="440" align="center"></embed>
</div>
</div>
</div>
</div>
Is there a way to pass the url into embed?