support Contact Support | system status System Status

Player Informational Properties

In this topic you will learn to access information about Brightcove Player using the VERSION and SKIN properties.

Additional information

There are also several ways to retrieve information about your Brightcove Player. Here are some other documents to help you work with the Brightcove Player:

Player properties

The Brightcove Player properties contain information about your specific player. For details about setting the player skin and version, see the Skins and Player Versions document.

VERSION

The bc.VERSION property specifies the player's version as defined in the player configuration.

Here is an example:

    <video-js id="video_1" style="width: 640px; height: 360px;"
    data-video-id="4029697544001"
    data-account="1752604059001"
    data-player="default"
    data-embed="default"
    class="video-js"
    controls></video-js>
    <script src="https://players.brightcove.net/1752604059001/default_default/index.min.js"></script>


    <!-- custom script -->
    <script type="text/JavaScript">
        var myPlayer;

	videojs.getPlayer('video_1').ready(function() {
            myPlayer = this;
            console.log(bc.VERSION);
            console.log(bc.SKIN);
        });
    </script>
Returned value:

The value returned in this case is 5.1.7

This value comes from the player configuration, which can be found by previewing the player in the browser and changing index.html to config.json.

bc-version

SKIN

The bc.SKIN property specifies the skin that is applied to the player.

Here is an example:

    <video-js id="video_1" style="width: 640px; height: 360px;"
    data-video-id="4029697544001"
    data-account="1752604059001"
    data-player="default"
    data-embed="default"
    class="video-js"
    controls></video-js>
    <script src="//players.brightcove.net/1752604059001/default_default/index.min.js"></script>

    <!-- custom script -->
    <script type="text/JavaScript">
        var myPlayer;

	  videojs.getPlayer('video_1').ready(function() {
            myPlayer = this;
            console.log(bc.VERSION);
            console.log(bc.SKIN);
        });
    </script>
Returned value:

The value returned in this case is null, which means the Luna skin is applied to this player. Here is a summary of return values from the bc.SKIN property:

bc.SKIN value Skin applied
false No skin, so that you can override with your own styles
graphite Graphite skin
all other values (or lack thereof), which includes undefined, null, true, etc. Luna skin (default skin)

This value comes from the player configuration, which can be found by previewing the player in the browser and changing index.html to config.json.

bc-skin

Page last updated on 26 Feb 2020