Hi, Is there any one who could provide the working stack of playing you tube video?
Thanks
Cheers
pkm
How to play YouTube Video
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9445
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How to play YouTube Video
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.]
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
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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w