Detect end of YouTube video?

  1. 7 weeks ago

    John S

    Jan 2 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

    Jan 4 Pre-Release Testers Illinois
    Edited 7 weeks ago

    John, might this info help?

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

  3. 4 weeks ago

    John S

    Jan 23 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

    Jan 25 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. 3 weeks ago

    John S

    Feb 1 Pre-Release Testers, Xojo Pro

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

or Sign Up to reply!