Exiting Browser Widget

William Prothero prothero at earthednet.org
Thu Jun 2 15:48:56 CEST 2016


Bramanathaswami :

It would be great if there was an example stack for this. I don’t use javascript, so throwing together a javascript to do this would be hard.

In case this is what you are wanting, you can load a youTube video by using the embed code provided by youTube. For example, if you click “share” beneath the youTube video, as displayed on youTube.com, you will see a button you can click on named “Embed”. This is the code you put into a web page to display the video.

For one video, I get:
<iframe width="420" height="315" src="https://www.youtube.com/embed/KIOVw43A-I4" frameborder="0" allowfullscreen></iframe>

If I create a web page with this code in it, the youTube video will be displayed. You can put other html or javascript into that web page text, so you can get whatever elements you want to show up and/or execute. I assume I can load the web page code from a file in my local app or create it on the fly in livecode.

Hope this is useful.

Best,
Bill


> On Jun 1, 2016, at 11:25 PM, Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
> 
> When we are in Safari or Firefox on an iPHone, if you play a YouTube video, the phone switches to full screen  video player and has a "Done" link at the top with the controller. 
> 
> I'm not sure exactly what is happening there,  but this appears to be the way users expect to be able to exit a video.
> 
> Is there a way to get this behavior in the browser widget when it is assigned a YouTube URL? 
> 
> 
> On 5/26/16, 5:26 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami" <use-livecode-bounces at lists.runrev.com on behalf of brahma at hindu.org> wrote:
> 
>> Use Case:  Video Viewer (YouTube) "full screen" on mobile devices
>> 
>> 1) set up a landscape card  736w X 414h (16X9)
>> 2) place a browser widget there that takes the entire screen
>> 3) when navigating to this card, we dynamically set a YouTube URL to fill the widget/card
>> 
>> So far, so good, tested and it works
>> 
>> BUT
>> 
>> Is there a way to trigger an option to exit and return to previous card or to a menu etc.
>> without  shrinking the video -- so as to give us some toolbar space at the top or bottom?
>> 
>> I guess the question becomes simply:
>> 
>> how does one trap and pass the mouse down on the browser widget back the LC msg hierarchy?
>> 
>> ideally this behavior could be trigger when the user clicks the play or pause control inside the YouTubeVideo itself.
>> 
>> Possible?
>> 
>> BR
>> 
>> 
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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