Youtube video in LC browser window?

William Prothero prothero at earthednet.org
Tue Jan 6 22:17:42 EST 2015


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/




More information about the use-livecode mailing list