What component to be used for video in AEM 6.5 ? | Community
Skip to main content
Mario248
Level 7
Jul 5, 2022 1:16 PM UTC
Solved

What component to be used for video in AEM 6.5 ?

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.html?lang=en#install-ffmpeg. 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.

 

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mohit_KBansal
Mohit_KBansalAccepted solution
Employee
Jul 5, 2022 1:56 PM UTC

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

8 replies

Employee
Jul 5, 2022 4:09 PM UTC

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.html?lang=en 

 

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

Translate
Aditya_Chabuku
New Participant
Jul 5, 2022 3:40 PM UTC

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

Translate
Thanks,Aditya Chabuku
SantoshSai
New Participant
Jul 5, 2022 3:30 PM UTC

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-features.html?lang=en

Hope that helps!

Regards,

Santosh

Translate
Santosh Sai
Mohit_KBansal
Mohit_KBansalAccepted solution
Employee
Jul 5, 2022 1:56 PM UTC

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

Translate
Mario248
Mario248Author
Level 7
Jul 6, 2022 6:23 AM UTC

Does this approach need to have ffmpeg encoded installed ?

Translate
Mohit_KBansal
Employee
Jul 6, 2022 7:43 AM UTC

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

Translate
Mohit_KBansal
Employee
Jul 5, 2022 1:54 PM UTC

Consider creating a new Custom component.

Translate
Employee
Jul 5, 2022 1:29 PM UTC

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. 

 

 

Translate