Embed.JS simple and dynamic embed helper.
Embed.JS currently supports these platforms:
youtube
facebook
instagram
soundcloud
vimeo
dailymotion
metacafe
Initialize Embed class and call run method
- target: Embed content shown will be in this area
- source: name for platforms:
- youtube
- dailymotion
- facebook
- instagram
- soundcloud
- vimeo
- metacafe
- width: Optional: (default: 500)
- height: Optional (default: 315)
var embed = new Embed({
id: 'wZZ7oFKsKzY',
target: '.video_container',
source: 'youtube',
width: 600,
height: 600
})
embed.run()