A few questions about the Web platform


wtf?

It is a known limitation that WebMoviePlayer does not handle YouTube embeds.

For single videos, you might be able to use the frame embed URL in a HTMLViewer because that ends up being an iframe.

1 Like

the usual place is Udemy, noobs will check there
there is couple courses
https://www.udemy.com/courses/search/?src=ukw&q=xojo
would be great to have xojo courses there in english yes

I don’t know much about Xojo Web but to play a YouTube video with HTML/JS:
Download Brightcove’s videojs
Download the YouTube plugin

<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8 />
    <title>GooTube</title>
    <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
</head>
<body>
    <video id="video-player" class="video-js vjs-fluid vjs-default-skin" ></video>
    
    <script src="js/video.min.js"></script>
    <script src="js/youtube.min.js"></script>
    <script>
        let options = {
            "controls": true, 
            "autoplay": false, 
            "preload": "auto",
            "techOrder": ["youtube"], 
            "sources": [
                { 
                    "type": "video/youtube", 
                    "src": "https://www.youtube.com/watch?v=Oo9H970JLg8"
                }
            ]
        };
        let player = videojs("video-player", options);
    </script>
</body>
</html>

n.b. Some video owners don’t allow their content to be played on external sites, with those you’ll get an error code 1150 (iirc).