Embed a video in a survey - various methods
Summary | This article describes various ways to embed a video into a specific screen of a survey. |
Applies to | AskiaDesign |
Written for | Survey Designers |
Keywords | video ; embed ; youtube ; design ; iframe ; html ; html5 ; mp4 ; webm ; ogg ; vimeo; |
Embed videos from YouTube
Based on YouTube's support article about how to retrieve the HTML code of a video:
- From YouTube directly, retrieve the HTML code to embed the video.
- In AskiaDesign, navigate to the specific screen.
- Open the screen's properties.
- In the Contents tab, uncheck the Use default checkbox for the Before content section, so that the screen does not use the default template.
- Paste the HTML code into this box.
You can download the resulting questionnaire here.
Alternatively, you can start from step 3 and . . .
4. Create a label on the screen and paste the HTML code in that label.
You can download the resulting questionnaire here.
Embed videos from other online services
Most other online services do provide embedding features, like Vimeo or YouTube. They are often located alongside the social media sharing features.
Example in Vimeo:
Once you have retrieved the HTML code from the online video service, start from step 2.
Embed a locally hosted video file
This method relies on HTML/HTML5 language and the guide is available from w3schools.com here.
Click here to download the attached example QEX.
Note: the above HTML method only supports MP4/WebM/OGG video formats. If you have an AVI or other video format, you'll need to convert the video to one of the previously mentioned formats first before the player can use it.
- Add your MP4/WebM/OGG video file into the Resources tab in the survey (Right-click, Insert Animation, and browse to your file).
- Create a label on the screen you would like to play the video on.
- Insert the following code into the caption of that label:
<video width="600" height="" controls>
<source src="??ResPath??\oceans.mp4" type="video/mp4">
</video>You should now see an HTML5 player, as shown below:
Embed an .MP4 video via an ADC:
Askia has created a specific ADC for playing a video from .MP4 file. Details can be found in the here.