Re: Exiting Browser Widget

2016-06-02 Thread Mike Bonner
I think there is overlap between touch and mouse events.. In your loop if you check to see.. if the mouse is down then do something in your loop, rather than looking for a browserclick (which appears to only work with the old style browswer) can you detect a touch? On Thu, Jun 2, 2016 at 1:53

Re: Exiting Browser Widget

2016-06-02 Thread David Bovill
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

Re: Exiting Browser Widget

2016-06-02 Thread Sannyasin Brahmanathaswami
@ 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

Re: Exiting Browser Widget

2016-06-02 Thread Mike Bonner
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 i

Re: Exiting Browser Widget

2016-06-02 Thread Sannyasin Brahmanathaswami
@ Bill (Prothero): Yes, that was my next approach, (embed iFrame) but I was interested in the tech behind the current behavior in web browsers on mobile… somehow they throw control of the video player to some other framework… where the "Done" and controller appears at the top momentarily.. then

Re: Exiting Browser Widget

2016-06-02 Thread William Prothero
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 cli

Re: Exiting Browser Widget

2016-06-01 Thread Sannyasin Brahmanathaswami
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 vide

Re: Exiting Browser Widget

2016-05-27 Thread Sannyasin Brahmanathaswami
Hmmm… I don’t have control over the JS attached to a youtube page… makes for an interesting challenge On 5/26/16, 7:43 PM, "use-livecode on behalf of David Bovill" wrote: >You would need to get javascript to call a Livecode handler. > >So that means doing something like: > >set the javaScriptH

Re: Exiting Browser Widget

2016-05-26 Thread David Bovill
You would need to get javascript to call a Livecode handler. So that means doing something like: set the javaScriptHandlers of widget "Browser" to "takeMeHome" And then using a bit of javascript in the displayed web page: liveCode. takeMeHome("myMessage", 12345); to call your Livecode scrip