What would be the best way to go about this if we don't want to hide the survey element and show it when video is compete?
I'm currently playing video inside iframe within HTML question type, but I know you can show video content inside Image question type as well.
Would this require building a custom question component type?
Any advice is appreciated. Thanks!
Hello Adrian,
Do you have access to event when video is complete? You can simply turn off/on question visible property.
Thank you,
Andrew
SurveyJS Team
We're using Angular. Regarding the event, are you saying put the jquery example below inside the question HTML? Then how to turn on question visible property?
https://stackoverflow.com/questions/14625367/fire-event-when-vimeo-video-stops-playing
It means that you have to make the question initial invisible,
visible: false
and then use the code provided on stackoverflow:player.on('ended', function() { survey.getQuestionByName("yourQuestionName").visible = true; });
Thank you,
Andrew
SurveyJS Team
Thanks Andrew, trying now!
Worked great! Thanks Andrew!!!
Great!
Andrew
SurveyJS Team