-2

Functions like detection of inserted media, dvd tray is open or not. Currently, I'm using a native assembly exposed via activex.

Joe
  • 41,484
  • 20
  • 104
  • 125
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
  • 1
    From a browser? You can't. – Matt Aug 01 '13 at 18:25
  • @Matt Of course you can; you can use a windows ActiveX as Prince said. – MeTitus Aug 01 '13 at 18:26
  • @Marco: He said he's already using ActiveX. He wants a x-browser way. – Matt Aug 01 '13 at 18:27
  • @Matt I know, but what Prince was saying was for windows. It is now what the OP asked but I was replying to you. – MeTitus Aug 01 '13 at 18:28
  • 2
    Just to confirm: should this be tagged `node.js`? Are you using ActiveX within Node.js, or from a browser? – apsillers Aug 01 '13 at 18:30
  • Since you've tagged this [tag:node.js], are you asking about the DVD tray of your server machine? – Bergi Aug 01 '13 at 18:38
  • @apsillers I'm accessing from a browser. – Prince Ashitaka Aug 01 '13 at 18:51
  • @bergi no in my client machines tray. I was looking for possible ways to avoid activex usage. Won't I be able to use node.js in this regard? – Prince Ashitaka Aug 01 '13 at 18:52
  • 1
    @PrinceAshitaka Definitely not, unless you are running Node on the machine whose DVD drive you want to access. Thus, you could either ask every user to install and run a private Node.js instance (in which case you're not in the browser anymore, you're running a totally new program) or you can have the browser talk to a Node.js server (which could read its own DVD drive, but not the DVD of every client that connects to it). – apsillers Aug 01 '13 at 18:57
  • @apsillers thanks for the clear clarification. It was really helpful. – Prince Ashitaka Aug 01 '13 at 19:04

3 Answers3

2

You can't, unless you use ActiveX on windows for example.

MeTitus
  • 3,390
  • 2
  • 25
  • 49
1

You can use the MSWebDVD which should give you access to DVD controls.

Samer
  • 973
  • 1
  • 6
  • 15
0

Not javascript but c# or java would do..How to open cd drive java

Java

c#

Community
  • 1
  • 1
HIRA THAKUR
  • 17,189
  • 14
  • 56
  • 87