# How set delay in Autoplay?

Discussion in 'AnyDVD HD (Blu-ray issues)' started by Icaro, Apr 3, 2021.

1. ### IcaroWell-Known Member

Is there any way to set a delay in DVD and BD Autoplay?
This is to give Anydvd time to read the disc or image.
I use JRiver as a player, the problem is that the player (in Autoplay) starts before AnyDVD has finished scanning the disc, and this generates a problem, it sends the player in a loop.
Is it possible to set a delay between the player and Anydvd?
I also use VCD in automount

Thanks

2. ### whirlpoolWell-Known Member

AnyDVD can launch a script when the disc is ready.
Instead of running Jriver in autoplay make Anydvd run a script that launches Jriver

If it’s still there, there is an undocumented feature and the path to the key may be different with the latest version of Anydvd.

Undocumented feature :
Add a string registry value in HKCU\Software\SlySoft\AnyDVD\Settings called
Playerfilename.

This should be a batch file, where you can do whatever you want. As it is intended to start playback software, it is called *after* the disc is visible.

But you would need to manually exit Jriver after playback ends to re-arm the feature.

You might be better off requesting the Jriver developer to add a new feature to autoplay.

Last edited: Apr 3, 2021
3. ### IcaroWell-Known Member

@whirpool

could you help me compile the batch file ?
i am not capable

the player is located in:
C:\Program Files\J River\Media Center 27\Media Center 27.exe

And my Drive letters are "G" and "F"

Thanks

Last edited: Apr 3, 2021
4. ### whirlpoolWell-Known Member

Will check if the undocumented key is still available and try a test script.
Some other user has probably implemented this already.

5. ### IcaroWell-Known Member

Last edited: Apr 3, 2021
6. ### whirlpoolWell-Known Member

Yes, launching Jriver manually after Anydvd has made the disc available seems the easiest solution, but these days automation is king.

There is also the facility to launch an external program on media change in Anydvd’s settings which is worth investigating and may be the simplest option.

7. ### JamesRedfox Development TeamStaff Member

NO!
This is called *before*' the OS is aware of the disc change, to do things which need to be done *before* the disc is present.
Normal Windows autoplay is triggered *after* AnyDVD has done its magic and will (should) work fine for playback software.

9. ### whirlpoolWell-Known Member

Can the undocumented feature be used to launch after Anydvd makes the disc available ?
Undocumented feature :
Add a string registry value in HKCU\Software\SlySoft\AnyDVD\Settings called
Playerfilename.

If so, what’s the name of the data item under the key Playerfilename ?

Last edited: Apr 3, 2021
10. ### IcaroWell-Known Member

Ok
but to launch JRiver after scanning AnyDVD what should I do?

I also tried putting JRiver as an external program in AnyDVD, but it starts before AnyDVD finished scanning
Thanks!

11. ### whirlpoolWell-Known Member

Need the answer to “Undocumented feature :
Add a string registry value in HKCU\Software\SlySoft\AnyDVD\Settings called
Playerfilename.

If so, what’s the name of the data item under the key Playerfilename ?”

Else

launching Jriver manually after Anydvd has made the disc available seems the easiest solution

12. ### IcaroWell-Known Member

Finally (for the time being), I solved via batch file:
in Mediaportal, play on the movie, and launch the .bat,
which opens AnyDVD and after 3 seconds opens JRiver in Autoplay

13. ### JamesRedfox Development TeamStaff Member

Yes, of course! As I said: I have written this for playback. To have all possible options like different refresh rate, different playback software for different disc types, 3D, 2D, etc.

The full path to a batch command, e.g. C:\Autostart\Test.cmd
However, you need restart AnyDVD to make it check the registry value.

14. ### JamesRedfox Development TeamStaff Member

Bad idea. Avoid to start / stop / start / stop AnyDVD. AnyDVD is part of the operating system, and starting / stopping it is very expensive.
If AnyDVD is left running, normal Windows autoplay should work just fine.

15. ### JamesRedfox Development TeamStaff Member

Nobody can see a disc until AnyDVD is finished with it.
Leave AnyDVD running ALL THE TIME. Problem solved.

whatever_gong82 likes this.
16. ### IcaroWell-Known Member

Thanks James,
so how should I compile the batch, to start AnyDVD, and then JRiver at the end of the disk scan?

17. ### JamesRedfox Development TeamStaff Member

Do you really need to? Windows autoplay isn't sufficient?

Assuming player.exe wants the drive letter as a parameter:
Code:
@echo off
pushd c:\path\to\player
player.exe %1
popd

Save this in a file, e.g. called playerstart.cmd

Write this in the registry value
Code:
c:\path\to\playerstart\playerstart.cmd

But again, there should be no need to do this, if AnyDVD is used correctly.

18. ### JamesRedfox Development TeamStaff Member

And very important: LEAVE ANYDVD RUNNING. The magic won't work otherwise. Insert the disc / image / whatever with AnyDVD running.
Otherwise AnyDVD MUST remove the disc from the system (EXPENSIVE! DANGEROUS! Locks may be open, programs already accessing it, autoplay in progress), process it, re-insert it.

19. ### JamesRedfox Development TeamStaff Member

Simple: DO NOT START ANYDVD. LET IT RUN the way it is designed to, as part of the operating system.