Detect end of YouTube video?

  1. 7 months ago

    John S

    2 Jan 2019 Pre-Release Testers, Xojo Pro

    Is there any way to detect when a youtube video ends? Or starts?

    The time to open the video is different depending on download speeds

  2. Bob B

    4 Jan 2019 Pre-Release Testers Illinois
    Edited 7 months ago

    John, might this info help?

    https://developers.google.com/youtube/iframe_api_reference#Events

  3. John S

    23 Jan 2019 Pre-Release Testers, Xojo Pro

    Thanks for the reference but it doesn't apply. I'm trying to do this in real basic.

  4. Christian W

    25 Jan 2019 Pre-Release Testers Los Angeles, CA

    @John S Thanks for the reference but it doesn't apply. I'm trying to do this in real basic.

    Do you mean you're trying to do this in a desktop app? If this is the case your post is miscategorized. But you can create your own html page that uses the iframe api above and host the page in a webview in your application. Use the api and some javascript in your page to change the title of the page when your desired events have occurred. You can periodically poll the title of the page via the webview from your app and capture the events that way.

  5. 6 months ago

    John S

    1 Feb 2019 Pre-Release Testers, Xojo Pro

    No, I'm trying to do it in a web app.

or Sign Up to reply!