Skip to content

Player API Methods

How to get started?

The Show video player has a JavaScript API which supports a number of ways to interact with and control the video player.

To use SHOW Player API we have to make used of player embedding options, and post embedding the player we need to define the Player with API methods

How to embed player with methods?

You can use embed options to add call methods that will invoke the default functionalities status.

<script>
    function loader()
      {
        new PlayerV2
        (
            idElement = "Animker_player_-S9HyHcBoARLA-5il5_9",
            userid = "dskeu22377",
            mediaid = "-S9HyHcBoARLA-5il5_9",
            customData = false ,
            customFunctions = {
            onPlayerVideoEnded: function (video){
                // do something
              let isVideoEnded = video.onVideoEnded
            }
          }
        );
      }
</script>
<script onload="loader()" src="https://static.getshow.io/play/app.bundle.js" type="text/javascript" async></script>
<section id="Animker_player_-S9HyHcBoARLA-5il5_9" style={{ height: "360px", position: "relative", width: "640px" }}></section>

Available methods in SHOW

The list of methods

onPlayerVideoEnded Returns true when video is ended, else will return false or null