Player._bridge object

Could someone explain this please?
I have the following code

        var player = new Twitch.Player(channel, options);
        player.addEventListener(Twitch.Player.READY, handleReady);
        function handleReady() {
           // do something once you have player information 

I’m trying to access the object information of player._bridge._playerState, when I console.log(player._bridge) I’m able to see several options of which I want the object _playerState that contains things like, channelName, duration, playback, etc…
But once I go a level deeper and console.log(player._bridge._playerState) all the keys now have no value and are empty.
Does anyone know why this is happening? What am I doing wrong? How can I access things like duration, playback, viewers etc… of a player???

Accessing the bridge is unsupported. The supported functionality can be found in the documentation. The player embed doesn’t expose everything you’re requesting though, so you’ll have to augment using the API.

@DallasNChains Okay that makes sense for the bridge unsupported. Thanks for the reply I’m now using the Player Status functions to get the data I need.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.