Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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

 

Lakshmi9_0-1667812181720.pngLakshmi9_1-1667812290810.png

 

 

Thank you

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor

@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.