WMP and VOB

I have created a web page that will list cover images all of my DVD’s that I have on an external hard drive and each cover images is linked to the first VTS_01_1.VOB file for that DVD.

I am testing the page to see how it works for each device I have. The page works flawlessly with my Samsung tablet, the player I have installed on the tablet will automatically go from VTS_01_1.VOB to VTS_01_2.VOB and so on until movie is done.

If I use my Windows 7 pc and IE (chrome will not work), WMP will open the VTS_01_1.VOB and stop at the end of that file, how can I get WMP to continue to the next file automatically? I have no idea, please help.

[php]<?
//Path to folder which contains images
$dirname = “…/MOVIES/*/”;

//Path to folder which contains vob files
$dirname2 = “…/MOVIES/*/VIDEO_TS/”;

//Use glob function to get the files
//Note that we have used " * " inside this function. If you want to get only JPEG or PNG use
//below line and commnent $images variable currently in use
$images = glob($dirname."*.jpg");
$vobs = glob($dirname2.“VTS_01_1.VOB”);

//Display image and get the vob file using foreach loop

foreach( $images as $index => $image ) {

//print the image to browser with anchor tag (Use if you want really :slight_smile: )
echo ’ ';
}
?>[/php]

This is not a code issue. It is a video player issue. If you are using Windows and IE, you are most likely
playing the file with Windows Media Player. That player has a lot of hidden settings to play all items in a
“playlist”, but, as far as I know, it does NOT go to the next file unless you have loaded all of the file names
into a playlist. I could be wrong, but, I think you need to look into the player not your PHP code.

I am sure on the Samsung, it is not the Windows Media Player that is playing the VOB files. There are
a lot of other players that are free that might play the files as you wish. Let us know if you solve it…

Sponsor our Newsletter | Privacy Policy | Terms of Service