how to enable/support 3rd party video content from YouTube and Vimeo for embed component. | Community
Skip to main content
Level 3
November 7, 2022
Solved

how to enable/support 3rd party video content from YouTube and Vimeo for embed component.

  • November 7, 2022
  • 2 replies
  • 1004 views

could someone help me to understand how to enable/support 3rd party video content from YouTube and Vimeo for embed component on cloud please.

 

 

 

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Please check this https://github.com/arunpatidar02/aemaacs-aemlab#reference-content for the example authoring of YouTube component

<embed
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="aemlab/oneweb/components/embed"
                      embeddableResourceType="core/wcm/components/embed/v1/embed/embeddable/youtube"
                        type="embeddable"
                        youtubeVideoId="ABj0yh-c_1U"/>

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 7, 2022

Please check this https://github.com/arunpatidar02/aemaacs-aemlab#reference-content for the example authoring of YouTube component

<embed
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="aemlab/oneweb/components/embed"
                      embeddableResourceType="core/wcm/components/embed/v1/embed/embeddable/youtube"
                        type="embeddable"
                        youtubeVideoId="ABj0yh-c_1U"/>
Arun Patidar
Manu_Mathew_
Community Advisor
Community Advisor
November 7, 2022

@lakshmi9 Are you using iframe?

if so, then you can simply click on the “share” link while on the youtube video page then click on “embed”. Now you can grab the correct url/link from the code which is everything inside the src attribute. This is the correct “embed” URL to use when creating lightbox style videos on the site.