Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 654 Bytes

readme.MD

File metadata and controls

45 lines (35 loc) · 654 Bytes

Embed.JS

Embed.JS simple and dynamic embed helper.

Embed.JS currently supports these platforms:

youtube
facebook
instagram
soundcloud
vimeo
dailymotion
metacafe

Usage

Initialize Embed class and call run method

Params:

- 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)

For Example

var embed = new Embed({
	id: 'wZZ7oFKsKzY',
	target: '.video_container',
	source: 'youtube',
	width: 600,
	height: 600
})

embed.run()