changeToMediaAtIndex is not working after tvOS12 update

After updating to tvOS12, "changeToMediaAtIndex" has stopped working. It was working fine with the previous tvOS version(11.4). Has anyone noticed it?

Code used:

player.changeToMediaAtIndex(2);

https://developer.apple.com/documentation/tvmljs/player/1682100-changetomediaatindex