i'm trying to get offsetHeight of element but i got undefined.
with this i get html collection and everything works right:
document.getElementsByClassName("plyr--full-ui");
but if i add .offsetHeight i got undefined.
document.getElementsByClassName("plyr--full-ui").offsetHeight;
what is wrong?

HTMLCollection is array-like object. This will get first element offsetHeight:
document.getElementsByClassName("plyr--full-ui")[0].offsetHeight;