Page 1 of 1

How to play YouTube Video

Posted: Tue Apr 28, 2015 6:48 am
by pkmittal
Hi, Is there any one who could provide the working stack of playing you tube video?

Thanks
Cheers
pkm

Re: How to play YouTube Video

Posted: Wed May 20, 2015 8:44 am
by richmond62
Do you mean playing a Youtube video directly from its URL, or downloading it, converting it into some
amenable format and either embedding it or bundling it with a stack/standalone?

The 2 alternatives involve different types of work.

[Why do I get fed up with Forum users looking for working stacks, rather than pointers and code snippets to doing that themselves?
Probably because I have been learning xTalk for about 21 years with pointers and snippets, and no free lunch.]

Re: How to play YouTube Video

Posted: Tue Jul 14, 2015 1:40 pm
by MaxV
Here an example:

Code: Select all

   set itemDel to "/"
   set the defaultFolder to item 1 to -2 of (the effective fileName of this stack)
   put "<html><iframe width=560 height=315 src=https://www.youtube.com/embed/3AbV4Evqy8E frameborder=0 allowfullscreen></iframe></html>" into URL "file:./mypage.html"
   put the windowid of this stack into tID
   put (the defaultfolder &  "/mypage.html") into temp
   put revBrowserOpenCEF(tID,temp) into browserid
   revBrowserSet browserid,"rect",  "0,0,560,315"
   revBrowserSet browserid,"showBorder","true"