Video in Interface

Certified Associate Developer

I tried adding a YouTube video to an interface but it ends up blank.

a!videoField(
              videos: {
                a!webVideo(
                  source: document(21953,"url")
                )
              }
            )

I tried using this code and for source I tried replacing it with the YouTube video url which didn't work also. Do I need the mp4 of the video in documents or are YouTube videos not compatible?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Naresh

    Hey Naresh please, follow the following steps for getting a Youtube embed Link.: 

    • Open the YouTube video on YouTube that you want to add to your interface.

    • Click on Share button that is below the Video.

    • A pop up window appears with different options to share from. Select Embed from these options.

    • You will get an iframe link containing the different options for the video.

    • Select Enable privacy-enhanced mode from the Embed Options for no cookies option

    • Copy only the src value from the iframe link

    Forgive me if you have tried this and it hasnt worked. 

    Example of embed video: https://www.youtube.com/embed/Yzu_VcFdWYk 

Children