Play youtube movie inside a container

How i can play youtube movie inside a web page?


I have a web screen with links to youtube movies, i want when clicking on the link to play the movie in side a container on the page.


Thanks

Solution

Try to use an iframe, dragging an expression inside your container, with escape content option set to "No", with this HTML code:

<iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>

Replace the url with the URL that you want to show and then create two css classes to perform your container

.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

 according with this link:

https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php


you can check more info about how to include iframe in outsystems through this link:

https://www.outsystems.com/forums/discussion/6656/how-to-include-custom-html-in-your-application/

Solution

Hi shadar, 


You can use that component, Youtube.


It's easy to use.