Controlling the player with player.js

← Back to documentation overview

If you are completely new to Videopath, it might be best to start with our Getting Started tutorial.

Player.js is an open standard as well as a reference implementation in Javascript, which allows the creator of a website to run standard commands on an embedded media content on his website. This document provides an example of how to programmatically control the Videopath Player with player.js.

Among other things, this will allow you to start and pause the video, change the volume or retrieve information such as the current playback position or the video duration.

Example HTML Page

Click here to find a basic annotated code example of how to control a Videopath video with javascript using player.js. You can use the play and pause buttons to start and stop the video. If you open your javascript developer console, you will see additional information. You can inspect the source code of this example to learn how to use player.js with Videopath.

Please consult the full specification for a list of all methods supported by player.js.

This page is part of the Videopath documentation. If you have any questions, please don't hesitate to get in touch.