Exiting Browser Widget

David Bovill david at viral.academy
Thu Jun 2 15:53:24 EDT 2016


Try the custom url scheme. It seems to have changed:


   - launch url "http://www.youtube.com/watch?v=VIDEO_IDENTIFIER"

>From here -
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/YouTubeLinks/YouTubeLinks.html

http://www.youtube.com/watch?v=VIDEO_IDENTIFIER

http://www.youtube.com/v/VIDEO_IDENTIFIER


On 2 June 2016 at 20:06, Sannyasin Brahmanathaswami <brahma at hindu.org>
wrote:

> @ mike: great ideas:
>
> Testing for what messages get thru: this doesn't work
>
> Card script # widget is on this card with YouTube URL
>
> global fBrowserClicked
>
> on opencard
>    put 0 into fBrowserClicked
>    checkBrowserState
> end opencard
>
> on mouseup
>    put 1 into fBrowserClicked
> end mouseup
>
> Stack script:
>
> global fBrowserClicked
>
> command checkBrowserState
>    put fBrowserClicked
>    send checkBrowserState to me in 10 milliseconds
> end checkBrowserState
>
>
> clicking on the browser widget… no mouseup msg is passed  fBrowserClicked…
> never changes
>
>
> On 6/2/16, 6:03 AM, "use-livecode on behalf of Mike Bonner" <
> use-livecode-bounces at lists.runrev.com on behalf of bonnmike at gmail.com>
> wrote:
>
> >I can't test this on mobile right now, but I _think_ you can set up a send
> >loop in the background checking every 40 millisec or so and to check if
> >there is a touch. If there is, adjust the rect of the browser widget to
> >allow a header bar to show with your control.  As a widget on mobile, the
> >rect is whatever you set it to right?
> >
> >A feature request might be to implement browserclick so that it works with
> >the widget.
> >
> >If you want to go the iframe way you might also look here:
> >
> https://developers.google.com/youtube/iframe_api_reference#Getting_Started
> >and adjust things so that you can register javascript handlers with lc. In
> >this way, you should be able to have lc know what is going on in the
> widget
> >(player stop, etc.  )
>
> _______________________________________________
> 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