Is video playback (i.e. YouTube) available in DHTML?

Making an addon, and I need it to play videos. Any help would be appriciated!

http://forum.facepunch.com/showthread.php?t=1252515&p=40115323&viewfull=1#post40115323