Lets get straight to the point.
I am putting my old VHS/DVD contents on my hardDrive. Which is located in /mnt/d/Movies
, i am using windows and have WSL (windows subsystem linux). The WSL is where the webserver is hosted from as i would like to serve all this movies via my LAN to anyone wanting to watch them (LAN ONLY). Made a dynamic page to select the movie and load it.
movieDir Location: /mnt/d/Movies/Speed.2.Cruise.Control-1997/Speed.2.Cruise.Control-1997.mkv
When i try the following
$lanSite->movieDir = 'https://localhost/mnt/d/Movies/'
<--- 100% certain that its trying to read a folder that does not exists within the "localhost"
<video>
<source style="height:600px; width:480px;" src="<?= $lanSite->movieDir . DIRECTORY_SEPARATOR . $movieName . "-" . $movieYear . $movieFile; ?>" type="video/mp4">
</video>
NOTE: video files are being encoded into either mkv / mp4 depending on which one comes out the best for storing purposes.
URL USED: /mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
Tried the above which does not seem to load anything. When i try to check if the Dir and File exists they appear to exist but not load within the localhost page.
then i tried using apache .htaccess to redirect the /mnt/d/Movies folder
.htaccess: RewriteRule ^movie-file/(.*)$ movie_details.php?movie=$1
The above did not work, actually i think i ended up at the same place with a different approach.
I then realized that its outside of the rootDir, done some googling. The end result was me resetting my WSL due to a dir mixup.
Anyone perhaps know what could be the issue, if i load a file within the server no problem, although the server has 512GB storage and the movies i have encoded so far are at 650GB, externally using them from the drive itself is my only option.
Random Combos i tried:
https://localhost/mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
../../mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
//mnt/d/Movies/Speed 2 Cruise Control-1997/Speed.2.Cruise.Control-1997.mkv
D:\Movies\Speed 2 Cruise Control-1997\Speed.2.Cruise.Control-1997.mkv
file:///D:\Movies\Speed 2 Cruise Control-1997\Speed.2.Cruise.Control-1997.mkv
All combinations i have tried, failed epically. Yes, i have tried .mp4 and it comes with the same result --> folder Found --> file Found --> unable to see player or play