Re: Display Youtube video

2021-06-12 Thread Mark Smith via use-livecode
Hi David,

Here is something I’ve tried that work pretty well. 

Go to your video on Youtube. Select the “Share” option, copy the link. For my 
video (a demo) it was https://youtu.be/6geoK-SAmb0 


Then, in the browser widget url field reformat the string as follows: 
https://www.youtube.com/embed/6geoK-SAmb0?autoplay=1 


That worked for me (although it did not autoplay as expected… but there was a 
play button on the video you could tap on to get things going). I didn’t use 
any code at all. 

If you find a different solution that works (maybe better!)  I’d be happy to 
hear about it.

Cheers,
Mark


> On Jun 12, 2021, at 9:31 PM, David Bovill via use-livecode 
>  wrote:
> 
> Does anyone have any code to display a Youtube video. As far as I understand 
> the only way to do this is to request an html embed code from the Youtube api 
> based on the id of the video. The browser widget then could display this 
> html. Has anyone done this and can share a code snippet?
> 
> Schedule a call with me
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Display Youtube video

2021-06-12 Thread David Bovill via use-livecode
Does anyone have any code to display a Youtube video. As far as I understand 
the only way to do this is to request an html embed code from the Youtube api 
based on the id of the video. The browser widget then could display this html. 
Has anyone done this and can share a code snippet?

    Schedule a call with me
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode