I wanted to add a video component to my page in AEM. How can I achieve the same? What are the various options available to do so?
Solved! Go to Solution.
Views
Replies
Total Likes
You can create custome AEM video component
https://aem.redquark.org/2018/10/day-07-creating-your-first-component-in.html
Also can use out of box video component
You can create custome AEM video component
https://aem.redquark.org/2018/10/day-07-creating-your-first-component-in.html
Also can use out of box video component
Hi ish,
when i am working on redquark video component, Pause and Play button is not working i gone through the another js script but its not working. I am pasting the js and html can you check once
<!--
<div class="buttons">
<button class="button" onclick="playVideo()" >PLAY</button>
<button class="button" id="pause-button">PAUSE</button>
<button class="button" id="stop-button">STOP</button>
</div>
<iframe id="video" src="${properties.link}" frameborder="0" allowfullscreen></iframe>
<script>
function playVideo(){
var my=document.getElementById("video");
my.playVideo();
}
</script> -->
<a id="play-video" href="#">Play Video</a><br />
<iframe id="video" width="420" height="315" src="${properties.link}" frameborder="0" allowfullscreen></iframe>
<script>
$(document).ready(function() {
$('#play-video').on('click', function(ev) {
$("#video")[0].src += "&autoplay=1";
ev.preventDefault();
});
});</script>
Views
Replies
Total Likes
Views
Likes
Replies