Playing YouTube Videos In XOJO (RealBasic)


This tutorial shows how to embed and play a YouTube video. Real Studio 2011r3 for Windows was used. The HTMLViewer was used to play the videos.

Modification of the Video Link
Delete the watch? and replace the = with a /

http://www.youtube.com/watch?v=QLQBJugaoog

Becomes

http://www.youtube.com/v/QLQBJugaoog

YouTube Parameters are used in this video. A complete list, of parameters and examples, can be found at:

http://code.google.com/apis/youtube/player_parameters.html

The code was also tested on REALbasic 2008 R5.1 for Mac and REALbasic 2006 R4 for Mac

Code Download
RBYouTubeExample1.rbp
RBYouTubeExample2.rbp