playerId keeps returning a function

I am trying to add a readycallback function to work with my player till I realized none of the functions in the addReadyCallback function was working. After a couple of troubleshooting, the issue laid with the playerId passed into the function.

While logging the value of the playerId through the console, it kept showing this:

function(playerId){
kdp = document.getElementById(playerId)
}

rather than:

kaltura_player_1x1x1x1x

Could I please ask why the variable playerId isn’t returning the proper Id of the player available? Thank you!

Hi @msl2000, can you please share a test page that reproduces the issue.

Thanks,

Oren M.