Thanks. I cannot take all the credit for this sample pub as some of the core code is from existing NeoSoft samples. I just placed them into a new interface then added or changed some of the code and functionality to create this file-browser type media center.
is there a way to loop a video file at all?
The "Continous Play" button (the circular arrow) assumes a folder of multiple files, like that of an Audio CD ripped to a folder. As a "media center" style app, I didn't see a need to loop a single file endlessly.
If "the file" were the only file in the folder and the Continuous var "[LoopList]" = "True" then that file would loop indefinitely. However, this makes for an undesirable requirement, doesn't it?
To play a single file in a loop you could do a number of things to customize the app to play loops. As you may know, the NeoBookDX "dxPlay" command offers the option to loop a file...
- Syntax
dxPlay "player id" "loop count"
Ex.
dxPlay "[Player1]" "5"
(loops the file 5 times)
Ex.
dxPlay "[Player1]" "LOOP"
(loops the file indefinitely)
You could create a Checkbox option or make a Menu out of the Continuous button to set another variable. In the "Player1Complete" sub is where the "dxPlay" command is executed from. You could alter that sub to include another conditional statement that detects...
- Ex.
If "[LoopFile]" "True"
dxPlay "[Player1]" "LOOP"
Else
dxPlay "[Player1]" "1"
EndIf
I hope that helps.
jim