Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

What component to be used for video in AEM 6.5 ?

Avatar

Level 9

I want to maintain videos in AEM DAM and use it in aem pages. I am following this document for setting video component https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/config-video..... I believe I have to use /libs/foundation/components/video component at page level but not sure if this video component is up to date because of cq:deprecated property set at component level.

 

Mario248_0-1657026938990.png

Is there any wcm core component or any ootb component to use for video in aem 6.5?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Consider creating a new Custom component, and leveraging HTML5 video tag [1] 

<video width="320" height="240" controls>
      <source src="movie.mp4" type="video/mp4">
      <source src="movie.ogg" type="video/ogg">
      Your browser does not support the video tag.
</video>

You can have more controls like auto play, play in loop ...

 

[1] https://www.w3schools.com/html/html5_video.asp

View solution in original post

8 Replies

Avatar

Level 4

Hi , there is no OOTB video component available in 6.5. You would need to develop a custom video component as the one you are referring to is deprecated. You can use the embed core component if the video is embeddable/available on youtube. 

 

 

Avatar

Level 2

Consider creating a new Custom component.

Avatar

Correct answer by
Employee Advisor

Consider creating a new Custom component, and leveraging HTML5 video tag [1] 

<video width="320" height="240" controls>
      <source src="movie.mp4" type="video/mp4">
      <source src="movie.ogg" type="video/ogg">
      Your browser does not support the video tag.
</video>

You can have more controls like auto play, play in loop ...

 

[1] https://www.w3schools.com/html/html5_video.asp

Avatar

Level 9

Does this approach need to have ffmpeg encoded installed ?

Avatar

Employee Advisor

HTML5 video player support mp4 format also, so if you upload mp4 files, no encoding is needed.

Avatar

Community Advisor

Hi @Mario248 ,

"Adobe does not plan to make further enhancements to most of the Foundation Components stored in /libs/foundation/components. Look for the cq:deprecated and cq:deprecatedReason property in the component folder. AEM 6.5 has the Foundation Components included, and customers upgrading from earlier releases can keep using them as is. Further, the Foundation Components is completely supported even though deprecated." 
Based on above statement you may use it and it is supported even it says deprecated.

However, IMHO - It is best practice to create custom component and use it.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/deprecated-removed-featu...

Hope that helps!

Regards,

Santosh

Avatar

Community Advisor

Hi @Mario248 , 

 

There is no direct OOTB video component readily available. Even though there is an option similar to it, you have to Install FFmpeg and configure AEM separately & also Configure your Video Profiles.

This is not feasible for a few, in that case we have to custom implement. 

You can see feature/video_component code for your refernce.

 

 

~Aditya.Ch

Thanks,

Aditya Chabuku

Avatar

Employee

You can use the embed component to add reference to video resources [1].

Otherwise there is an enhancement request for a video component as part of core components[2].

 

 

 

[1]https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/embed.ht... 

 

[2]https://github.com/adobe/aem-core-wcm-components/issues/218