Action to open a new webpage after playing a video?

New Here ,
Aug 12, 2019 Aug 12, 2019

Copy link to clipboard

Copied

Hi everybody,

I am looking for an action i html5 canvas to open a new webpage immediately after running a short video intro. I can only find the 'onclick'-action, but I need an action that opens a new webpage without any activity from the user. Can it be done?

Best Regards,

Rasmus Jelbo

Views

133

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 12, 2019 Aug 12, 2019

Copy link to clipboard

Copied

Hi.

If your video instance name is video0 and the loop property is false, you could write this:

var video;

setTimeout(function() // a delay is needed to reference components in Animate CC

{

    video = document.querySelector("#video0");

  

    video.onended = function(e)

    {

        window.open("https://www.adobe.com/", "_blank");

    };

}, 0);

Regards,

JC

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 02, 2022 Mar 02, 2022

Copy link to clipboard

Copied

LATEST

Hi,

 

I know it's old but I had the same question and I tried exactly this but it's not working.

(I use Animate in HTML5 Canvas and I set the loop to of and the instance name of my video is video0)

But at the end of the video nothing happens.

 

Best regards

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines