How to play YouTube Video
Posted: 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
Thanks
Cheers
pkm
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
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"