How to play YouTube Video

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

How to play YouTube Video

Post by pkmittal » Tue Apr 28, 2015 6:48 am

Hi, Is there any one who could provide the working stack of playing you tube video?


Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: How to play YouTube Video

Post by richmond62 » Wed May 20, 2015 8:44 am

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.]

Posts: 1577
Joined: Tue May 28, 2013 2:20 pm
Location: Italy

Re: How to play YouTube Video

Post by MaxV » Tue Jul 14, 2015 1:40 pm

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= 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"
Livecode Wiki:
My blog:
To post code use this:

Post Reply

Return to “Windows”