Skip to content

Releases: Buggem/youtubejs

v1.0

14 Aug 00:33
07f5768
Compare
Choose a tag to compare

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)

13 Aug 23:57
b08bcd9
Compare
Choose a tag to compare

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>