Releases: Buggem/youtubejs
v1.0
First version of youtubejs that isn't beta!!
youtubejs 1.0-beta
youtubejs is Pure Javascript that allows you to embed youtube videos.
Using Javascript
Run the command:
youtubejs.embed("[place your width here]", "[place your height here]", "[video id]", "[ssl or not! accepted values: string true if equals "true"]");
For [video id], the id is what is after http://www.youtube.com/watch?v=
Note: document.write("<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]"></yt-embed>");
Will only work if youtubejs.update()
is called after it.
Pure HTML
Add the element <yt-embed>
It should look like:
<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]" ssl="[ssl or not! accepted values: string true if equals "true"]"></yt-embed>
v0.9 beta release (no functionallity for HTTPS servers)
First release of youtubejs!
youtubejs 0.9-beta
youtubejs is Pure Javascript that allows you to embed youtube videos.
Using Javascript
Run the command:
youtubejs.embed("[place your width here]", "[place your height here]", "[video id]");
For [video id], the id is what is after http://www.youtube.com/watch?v=
Note: document.write("<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]"></yt-embed>");
Will not work.
Pure HTML
Add the element <yt-embed>
It should look like:
<yt-embed width="[place your width here]" height="[place your height here]" videoid="[video id]"></yt-embed>