A WordPress Plugin for integrating the Anvato video player. This plugin lets you add a shortcode for Anvato video into your content. You can easly find your Anvato video by searching with this plugin.
In order to get this working in your WordPress installation, you have to follow the next steps:
- Get the below configuration parameters form Anvato
mcp_idstation_idprofileplayer_url
- Set default video player size & autoplay state
widthheightautoplay
- Set tracking parameters, give empty if you use default
plugin_dfp_adtagurltracker_idadobe_profileadobe_accountadobe_trackingserver
This plugin has a shortcode supports to prepare Anvato video embed code automatically.
[anvplayer video="282411"]
videowidthheightautoplayadobe_analytics(accepts onlyfalse, which removes all Adobe settings from the output)
- Wordpress 5.3.2 must be installed.
- Wordpress Rest service must be enabled.
Anvato Gutenberg block implementation resides in plugin's gutenberg directory. In this directory,
srcis the directory where block source code residesbuildis the directory where compiled and bundled block code resides,
If you would like to develop or compile Anvato Block source, you will follow build steps below .
- Change current directory to
gutenberg - Make sure
nodeandnpmare installed on your machine. npm installnpm run build- (Optional - live reload)
npm run start:custom
We are linting our codebase using PHP Code Sniffer along with two Wordpress rulesets such as Wordpress-Core and WordpressVIPminimum.
To lint the codebase, please run below commands in the plugin root directory.
phpcs --standard=WordPress-Core ./**/*.php --no-cache
phpcs --standard=WordPressVIPminimum ./**/*.php -n --no-cache
To fix automatically, please run below commands in the plugin root directory.
phpcbf --standard=WordPress-Core ./**/*.php --no-cache
phpcbf --standard=WordPressVIPminimum ./**/*.php -n --no-cache
Anvato Player parameters (player URL, width, height, title and share link) are used to decorate player instances. We support additional custom player parameters in Embed Parameters field as JSON object that are passed to Anvato Player without modification.
Adobe, Comscore and Heartbeat settings have as-is attributes. Please see below for exceptional cases.
Heartbeat Analytics
Account Info field can be JSON object that includes all attributes for Heartbeat Analytics. It is also can be used an account Id as a single field along with other attributes in the settings.
Google Analytics
Account Info field can be JSON object that includes all attributes for Google Analytics. We also support shortcode attribute level Google Analytics tracking ID.
Example: [anvplayer video="9876543" plugin_google_trackerid="UA-12345"]
One of the following fields is enough to set Anvato Player's Google Ad Manager Plugin (formerly DFP) in Monetization Tab. Don't set both fields.
-
Google Ad Manager(GAM) Premium Ad Tag
It is used to set GAM Plugin Adtag URL. It can be also set in shortcode as attribute.
Example: [anvplayer video="9876543" plugin_dfp_adtagurl="[URL]"]
-
Advanced Targeting
JSONobject that are passed toAnvato PlayerasGAM Pluginobject without modification.To override GAM client side key values, you can use attribute level setup.
Example: [anvplayer video="9876543" dfpkeyvalues="[keyValues]"]