How to Play YouTube Video In Salesforce Lightning Component
We can play video file in lightning component by 2 ways :
- From Static Resources.
- Play Video File Using iFrame Tag.
<iframe width="720" height="480" src="https://www.youtube.com/embed/45JRuZOBIKk"></iframe>
</aura:component>
<aura:application>
<c:videoDemo/>
<!-- here c: is org. default namespace prefix-->
</aura:application>
No comments:
Post a Comment