Skip to main content

Adding a YouTube Video

This is the documentation for Pano2VR 4. You can find the new documentation for Pano2VR 5 here.

However, this document is still valid for the current version of Object2VR!

Flash[edit]

  1. Go to the YouTube video to embed. Make sure that you can embed the video, not all can.
  2. Click on Share, under the video, and then Embed.
    ◊ NOTE: this will not be available if the owner of the video does not want you to embed it.
  3. Select, Use old embed code.
  4. Copy the embed code that appears in the text box and paste it in a text editor.
  5. Copy the URL located within the code. This is the file location. It should look something like this: //www.youtube.com/v/k-KXcQR28ns?version=3
    You must make this an absolute URL by adding, http:, to the URL: http://www.youtube.com/v/k-KXcQR28ns?version=3.
  6. Note the dimensions of the video player within the embed code. For example, width = 420px; height = 315px.
  7. Open the Skin Editor and in the Toolbar, click the Add external Image/SWF button,Skin external.png, and draw an external box (external image).
  8. Open the external image's properties.
  9. Set the size of the box to match the embedded movie's size.
  10. Keep, Loading, selected.

HTML5[edit]

  1. Go to the YouTube video of choice then click the Share button and then click, Embed.
  2. Copy the embed code, which will look something like this: <iframe width="560" height="315" src="http://www.youtube.com/embed/j6gZosASPWs?rel=0" frameborder="0" allowfullscreen></iframe>.
  3. Open the Skin Editor and add a text box. Size it to match the dimensions of the embedded video.
  4. Paste the code into the text field of the text box.
  5. To unload the video, use a blank set text action to remove the code in the text box. To be able to replay the video, use a set text action with the above code.

See also[edit]

Skin Editor
Flash Output (Pano2VR)
HTML5 Output (Pano2VR)