Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 3

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"/>

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"/>

Avatar

Level 9

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