I’m checking if it is possible to use WordPress as a “media center” which will provide video, pdf, and audio content straight from a folder on a hard drive in the way that if video will be added to a folder it should appear on the website if it will be deleted then it should disappear from the website. Something like plex. No I can’t use plex, there is completely no control over this type of application. Now I’m using a very old solution made in wagtail, but it’s complicated and problematic.
You’re trying to shove a round peg in a square hole here. If you’re looking for a cloud storage type application, use one of those. If you’re looking for a streaming media type application, use one of those.