To add a YouTube video to your survey, will need to obtain the Embed code from the YouTube website, and copy it into the survey Editor.
Copying the Embed Code from YouTube
To obtain the embed code for the video:
- Open the YouTube page where the video is located.
- Underneath the video, click the Share icon.
- In the menu that opens, click Embed.
- Highlight the code provided and press CTRL+C to copy. On a Mac, press Command+C.
Your video embed code will look something like this: <iframe width="560" height="315" src="https://www.youtube.com/embed/d- T6rpHuuoJcw" frameborder="0" allowfullscreen></iframe>
Embedding the Video Code in a Survey
To embed the video in your survey with default options:
- On your survey, click Add Question to add the video to a new question, or click Edit Question to add it to an existing question.
- Click the Enable Editor button under the Question Text field.
- Click the YouTube icon in the Editor. A pop-up window appears.
- Paste the code you copied into the Paste Embed Code Here box.
- Click the green OK button to embed your video.
Advanced Video Embedding
SmartSurvey lets you control the way the video is displayed.
The process of embedding the video code is slightly different:
- Copy the page URL for the YouTube video (not the embed code).
- Open the Survey Design page for the survey you want to edit.
- Click Add Question to add the video to a new question, or click Edit Question to add it to an existing question.
- Click the Enable Editor button under the Question Text field.
- Click the YouTube icon in the Editor. A pop-up window appears.
- Paste the YouTube video URL into the Paste YouTube Video URL field.
- Customise the appearance of your video using the fields that follow:
- Use the Width and Height fields to specify the size of the video
- Check Make Responsive to automatically resize the video to fit
- Check Show suggested videos at the videos end to display related videos when your embedded video has finished playing
- Check Use old embed code to paste an older version of the embed code in the box
- Check Autoplay to force the video to play as soon as the page is loaded
- Check Enable privacy-enhanced mode to prevent YouTube collecting data about your visitors unless they click Play
- Type the Start at time to start the video part-way through, using the format hh:mm:ss (hours:minutes:seconds)
- Click the green OK button to embed your video.