Detect Display Type (Projector) from within the browser


It goes like this, we need to detect if the display is a Projector (or if the system is connected to a Projetor).

the catch is this should be done from within the browser.

so is it possible to do so by using an

Java Applet


ActiveX (this does constrains to a single browser, so not an option)

searching so far only reaveals display resolution. expecting if there is something still out there. . .

Edit: accecpted answer is for Java Applet approach. hope there may be an easier way through flash...


A normal Java Applet will not be able to tell you whether you're viewing through a projector.

If you can detect whether you're running on a projector from native code then you could code a library up to do so and access it from your Applet with JNI. You'll need to sign your applet and wrap your library loading with AccessController.doPrivileged()

Here's explanation of how that last bit works: <a href="http://download.oracle.com/javase/1.4.2/docs/api/java/security/AccessController.html" rel="nofollow">http://download.oracle.com/javase/1.4.2/docs/api/java/security/AccessController.html</a>

By all accounts, Java Web Start provides an easier path for using DLLs from Java though: <a href="http://mindprod.com/jgloss/jni.html#APPLETS" rel="nofollow">http://mindprod.com/jgloss/jni.html#APPLETS</a>


Use CSS.

selector { property: value1; } @media projection { selector { property: value2; } }

You could use JavaScript to detect the different value. :)

if (element.getPropertyValue(property) === value2) /* Some JavaScript stuff. */


  • Copy a file from PDA to PC via USB in java
  • Scraping flash using HtmlUnit or other java tool
  • how to get MAC address using any browser with javascript [duplicate]
  • What cross-browser technology do you use in your web applications to manipulate on client machines?
  • Is there a filesystem plugin available for django?
  • How to setCenter mapview with location in google maps sdk for iOS
  • NewGlobalRef of a weak reference still prevent a object from garbage collected
  • How to use JNI to call a “main” function that takes an array of character pointers?
  • Singular Value Decomposition Implementation
  • How to change display text in item template based on eval in gridview?
  • Exception handling as per java coding standards
  • Whats the right place for testhelper-classes? (phpunit/best practise)
  • record audio in HTML / js without Flash?
  • Disabling sound of embedded flash object with html
  • css background images not always displayed
  • SQL query to group by maximal sets of a column having inner consecutive distances below a threshold
  • in batch how do i use taskkill properly
  • Clear activity stack before launching another activity
  • How do I include a SWC in an AS2 Flash project?
  • Calling Worksheet functions from vba in foreign language versions of Excel
  • How to handle images sent by a mobile device?
  • Create DicomImage from scratch using Dcmtk
  • Refering to the class itself from within a class mehod in Objective C
  • How to do unit test for HttpContext.Current.Server.MapPath
  • Recording logins for password protected directories
  • formatting the colorbar ticklabels with SymLogNorm normalization in matplotlib
  • Pass value from viewmodel to script in zk
  • Cross-Platform Protobuf Serialization
  • what is the difference between the asp.net mvc application and asp.net web application
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • Jquery - Jquery Wysiwyg return html as a string
  • WOWZA + RTMP + HTML5 Playback?
  • Arrays break string types in Julia
  • How to format a variable of double type
  • WPF Applying a trigger on binding failure
  • Benchmarking RAM performance - UWP and C#
  • coudnt use logback because of log4j
  • Java static initializers and reflection
  • How does Linux kernel interrupt the application?
  • JaxB to read class hierarchy