I would like to include pulugins for Mozilla and IE on my Web page. When user visiting my page click the butto plugin should be installed on client's computer and user will able to see my streaming.
How to do it?
Code: Select all
var vlcObj = CreateObject("VideoLAN.Vlcplugin.1");
if( null != vlcObj )
vlcInstalled = true
Code: Select all
if (navigator.plugins && navigator.plugins.length) {
for (var i=0; i < navigator.plugins.length; i++ ) {
var plugin = navigator.plugins[i];
if (plugin.name.indexOf("VideoLAN") > -1) {
vlcInstalled = true;
}
}
}
Code: Select all
var vlcInstalled= false;
if (navigator.plugins && navigator.plugins.length) {
for (var i=0; i < navigator.plugins.length; i++ ) {
var plugin = navigator.plugins[i];
if (plugin.name.indexOf("VideoLAN") > -1
|| plugin.name.indexOf("VLC") > -1) {
vlcInstalled = true;
}
}
}
Code: Select all
var vlcInstalled= false;
var vlcObj = null;
try {
vlcObj= CreateObject("VideoLAN.VLCPlugin.1");
} catch (e) {
var msg= "Se produjo una excepción al tratar de crear el objeto VideoLAN.VLCPlugin.1:\n";
for (p in e)
msg+= "e."+p+"= " + e[p] + "\n";
window.alert (msg);
}
if( null != vlcObj )
vlcInstalled = true;
Users browsing this forum: No registered users and 43 guests