Skip to main content
Setting the Page URL
Updated over a year ago

Overview

The AnyClip AI Engine requires access to a page in order to analyze the page content and to recommend the best videos to go with the content. This access can also be used to improve video ad targeting.

There are a number of scenarios in which the player does not have direct access to the page URL, for example:

  • When the player is embedded in a secure iFrame

  • When the page uses a continuously updated infinite scroll

  • Within a Single Page Application

In these cases, the page URL can be set using the Set URL method to show the player.

Note

The SetNewURL method is particularly important when using the Move Player API to ensure that the correct URL is assigned to the player.

API

window.aclreSetNewURL("newURL");

Note

The newURL parameter must be encoded.

Did this answer your question?