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
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

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?

Thanks
Cheers
pkm

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5393
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.]

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

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=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"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Windows”