Javascript API 2.0

Introduction

The  vzaar player JS API allows you to control, and get information about, media playback and audio from the vzaar player using Javascript. You can also combine it with our  security features such as domain control and signed keys.
Please see the full JS API Documentation to see everything you can do with the API and what follows is a basic example to get your integration started

Quickstart

All you need to do to enable the Javascript API is include the vzaar library before the closing </body> tag on your website:

<script src="http://player.vzaar.com/libs/flashtakt/client.js" type="text/javascript"></script>

Then you can use any of the available functions like so:

// Pass the ID of your video's iframe
var vzp = new vzPlayer("vzvd-10355742");

// Ensure the video is ready to accept commands
vzp.ready(function() {
  // Your code
vzp.play(); });

Features

The  vzaar player JS API exposes a number of functions and events which can control player behaviour and trigger custom code when certain events occur.

To see what's possible we recommend looking at the vzaar player JS API.

There are many examples of player automation and other client-side scripting at:  http://vzaarsupport.com/

Still need help? Contact Us Contact Us