To use viewer tracking, it must be included in your license.
How it works
This feature allows a third party integrator to track when a user of their system has completed a video. To achieve this, an id is passed to the Viostream player when it is embedded, and Viostream calls an endpoint of your choosing with that id and an event name.
- Follow the instructions provided in [Customising a player] to edit the player
- Check Event tracking under Functions.
The supplied id (see below), and the triggered event will be sent as query string values: eventId=useridfromyoursite&event=complete. Currently, only Complete events are tracked.
Disable forward seeking will change the behaviour of the player control bar, to allow viewers to seek backwards, but not past their current position. This setting does not affect playback on mobile devices.
Passing an id to an embedded player
- Follow the instructions provided in [Embedding a media asset] to obtain an embed script.
- Add data-eventid="userid" to the tag e.g <script src="//publish.viostream.com/embed/mediakey?playerKey=playerkey" data-eventid="useridfromyoursite"></script> to pass an id to the player for tracking. Replace playerkey with the key of the player configured to use event tracking and mediakey with the key to the media being embedded.