GFSpotBase

Prev Next

The GFSpotBase is a basic class for locally played HTML spots and offers a variety of methods to communicate with the Grassfish Player.

  • It’s a JavaScript Library, which you must integrate into the local website.

  • You can use it with HTML Wizard spots and by HTML Basic spots.

Insert the file

You can nest the file gfSpotBase.js in subdirectories, however, don’t edit it.

To insert the file into the website, use this script tag: <script src="gfSpotBase.js"></script>

Note

Insert this script before any other scripts that relate to the player functionalities.

Access methods

Don’t access the GFSpotBase methods until the JavaScript file has been initialized. To do so, use the body onload method:

<body onload="init()">
  <script>
    function init() {
      alert(GFSpotBase.getVersion());
    }
  </script>
</body>