Basic Usage
This page describes how to integrate the 3Q video player js3q via our JavaScript API.
Generate player token
If token protection is active in the player, you’ll need to generate a token and add it to the embed code to load the player.
Example PHP Code
Example Python Code
After the variables key
and timestamp
have been generated, you have to insert them in the player configuration as shown in the following section.
Embed the player
Import the library anywhere on your page.
Now embed the player with a div at the position you’d like it to appear in your HTML page and use the js3q class to create a player instance.
Please note that key
and timestamp
are only required if token protection is active.
Working with the player instance
Methods
Events
You can easily listen to events either by specifying an event type, using *.*
for all events, or by grouping media.*
. The following snippet receives all media related events.
Last updated