Search code examples
javascriptwebrtspvlc

Recognizing users vlc plugin installation?


I use embed vlc plugin for demonstrating rtsp video stream on my web page.

I include it into my page body in this way:

<embed type="application/x-vlc-plugin" name="VLC" autoplay="yes"
loop="no" volume="100" width="800" height="600" target="rtsp://url.to.stream">

But if user hasn't vlc player plugin installed there is no image, and it doesn't offer link to install it. How can I recognize if user has plugin or no (by JavaScript maybe), or maybe it is possible to add more attributes of <embed> element, with which it will offer plugin installation automatically?


Solution

  • One option is to use VLC Media Player Plugin Detector.

    http://www.pinlady.net/PluginDetect/VLC/

    In most of the cases is works fine but has certain drawbacks you should consider.