Videos can be embedded into Displayr documents with a few lines of code. This is particular useful for showing videos of advertisements and vox pops. These can then be either published as online reports, or re-embedded elsewhere.

The YouTube video below has been created as follows:

  1. Get a link to wherever the video is hosted. For example, if using YouTube, as in the video below go to the video, click Share and then copy the embed code.
  2. In Displayr: Insert > R Output.
  3. Paste in the code below, updating the src in line 8 with the address of your video.

Then you are done. You can publish it or embed it as you need.