{{ page.title }}

{{ page.description }}

Automatically loading a URL without a user-initiated action is generally a discouraged UX practice. In many cases, browsers will prohibit this.

Annotations don't have the capability to load a URL without a user action. However, if you're technically inclined, this can be done using our APIs. You would create a JavaScript listener for the video-complete event, then perform the desired action. If you decide to take that approach, Brightcove can provide some code examples to help.

Here's a working example:

https://jsbin.com/wilaq/1/edit

At the end of the video, it auto navigates to hapyak.com. Here are the important lines of code:


onTrackingEvent: function(data) { 
       if (data.event==="Player Action" &&
data.properties.Action.indexOf("End")===0) {       window.location.href = "https://corp.hapyak.com"}}