embedding video into survey

Hi everyone,

I was trying to embed a video into my survey but unfortunately the video is not shown in the survey for some reason.

This is the code that I´ve used:

<iframe src="https://player.vimeo.com/video/563642243?h=42e582ed2f" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

<script src="https://player.vimeo.com/api/player.js"></script>
<script>
$(document).ready(function(){
$('#next_button, #previous_button').hide();
var iframe = $('#myvimeo');
var player = new Vimeo.Player(iframe)
player.on('ended', function() {
$('#next_button, #previous_button').show();
});
});
</script>

In the past I´ve already used this code in former surveys with other videos where it was working properly.

The only difference that I´ve seen is that the embedding code of vimeo now contains two numbers (see above) whilst in former embedding codes of vimeo there was only one number like :

<iframe src="https://player.vimeo.com/video/542626896?" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

Does anyone know how to make the video work in my survey?
I plan fielding tomorrow so any advice is highly appreciated!
Thank you!

Resolved
2 replies