Youtube video in LC browser window?

Neil Roger neil at livecode.com
Wed Jan 7 03:57:14 EST 2015


Hi Bill,

Looks like you are using our old browser implementation. Try using the 
new revBrowserOpenCEF function as this no longer requires Internet 
Explorer on Win and Safari on Mac.

e.g.

on openBrowser
    put the windowID of this stack into tWinID
    put revBrowserOpenCEF(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID
    revBrowserSet sBrowserID,"showborder","true"
    revBrowserSet sBrowserID, "rect",rect of grc "browserRect"
end openBrowser

Kind Regards,

Neil Roger
-- 
LiveCode Support Team ~ http://www.livecode.com
--


On 07/01/2015 03:17, William Prothero wrote:
> Folks:
> I’m testing a LC app I developed on a Macintosh, on a PC, Windows 7, 32 bit, LC7.0.1, release version. I’m having a problem with the browser window. I put my help files online and one of them includes a youTube video in Flash format. The video plays at half size. I don’t know if this is a bug, but I have a Mac with a retina display (running Parallels 9), and an external monitor that’s not a retina display. All of the regular Livecode cards display fine, but the youTube video is about half size. The text is at the expected size. I just use the embed code provided by youTube. It is:
>
> <iframe src="//www.youtube.com/embed/qK-1pmCX_7c" allowfullscreen=""
> frameborder="0" height="315" width="420"></iframe><br>
> <br>
>
> The width turns out to be more like 195, about half the width expected.
>
> The browser open script is:
>
> on openBrowser
>     put the windowID of this stack into tWinID
>     put revBrowserOpen(tWinID,"http://earthednet.org/ptExplorer/Cover.html") into sBrowserID
>     revBrowserSet sBrowserID,"showborder","true"
>     revBrowserSet sBrowserID, "rect",rect of grc "browserRect"
> end openBrowser
>
> The linked page has a link to the youTube video.
>
> Is this a bug in Livecode? Seems the browser should work the same way as on the Mac. Or, is it some problem with Flash videos and some adjustment can be made?
>
> Also, when I open this page in Explorer, everything is at half size. In Firefox, it’s the expected size. Since Explorer is not based on WebKit, I’m not surprised at the variation, and it’s not a problem because my app doesn’t interact with Explorer anyway.
>
> By the way, this video will not display at all in a 64bit version of Windows 7. And I’m using Parallels 9 on my Mac to run Windows.
>
> Regards,
> Bill
>
>
>
> William A. Prothero
> http://es.earthednet.org/
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list