So I'm working with a JW Player and everything is working great except for one piece of functionality I'm working on. When I run the code I get a console error: Uncaught TypeError: upTop.addEventListener is not a function
Here is the code:
                var upTop = document.getElementsByClassName('playlist-item');
                upTop.addEventListener('click', function() {
                jwplayer.setup({autostart: true, floating: {dismissable: true}});
                       window.scrollTo(0, 0);
                });
Is there some kind of syntax error I'm missing here?
 
     
     
     
     
    