How to detect CD inserted in drive with Javascript?


#1

Hi everyone
Is there a way to check if there is a CD/DVD inserted in the driver using javascript?

when user inserted CD/DVD in the driver , the xml file load from CD/DVD.

i use electron js to create desktop app. in online mode, data come from website and in offline mode, data should come from xml inside dvd. it not necessary load automatically, user can use reload button.

best regard