Print this page

Can I use iframes to embed videos on visual force pages ?

Knowledge Article Number 000176669
Description Can I use iframes to embed videos on visual force pages ?
Resolution Use <apex:iframe> for embedding.
 
<apex:iframe width="420" height="315" src="http://www.youtube.com/embed/Qd8OtvSgal8"/>
 
For youTube use their embedd URL instead of buffering URL.

 To insert flash image...
 
<apex:flash play="true" loop="true" src="http://www.tizag.com/pics/example.swf"  height="300" width="50%" />
 
You can also upload the SWF as a static resource and you can use that swf as follows.
 
<apex:flash play="true" loop="true" src="{!$Resource.FlashSWF}"  height="300" width="50%" />




promote demote