This tutorial explains how to download private videos & playlists, or rather: videos you need to be logged in for. I can't guarantee this will work for every service out there, but it for sure works ...
player.html is designed to be a drop-in audio and video player that does not require any configuration or other files. To use it, copy the ./src/player.html file into a folder that is served over HTTP ...