Hi, can some one pls integrate following in to this , If the Real Player not detected on their system This gives you a message
Quote:
Your browser has not detected a RealPlayer plug-in. It may be that you need to download RealPlayer or adjust your browser settings.
For help downloading or upgrading RealPlayer for free, visit our audio/video help page
Alternatively you can try to play the clip in the standalone player or change your preferences.
|
http://www.bbc.co.uk/mediaselector/c...news=1&prefs=1
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>BBC Media Player</title>
<link REL="stylesheet" HREF="/mediaselector/includes/en/style.css">
<script language="JavaScript">
<!--
var isMac = (navigator.userAgent.indexOf("Mac") != -1);
var isIE = (navigator.userAgent.indexOf("MSIE") != -1);
var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
function testForActiveXPlayer(){
if(document.layers && (!document.documentElement)){return false} //exclude NS4 which can't handle try/catch blocks
if(document.all){return true} //IE family post 4 will have activeX and IE4 can't handle try/catch
if(player){return player;} //we don't want to spawn players willy-nilly
try{
if(window.ActiveXObject){
return new ActiveXObject("WMPlayer.OCX.7");
}else if (window.GeckoActiveXObject){
return new GeckoActiveXObject("WMPlayer.OCX.7");
}else {
return false;
}
} catch(oError) { return false; }
}
function testForPlugin() {
if(document.layers){return navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;} //NS family always have mimeTypes
if(document.all){return false} //IE should use activeX objects
try{
if(navigator.mimeTypes){
return navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;
}
}catch (oError) { return false;}
}
function setPage() {
self.focus()
}
var subtitleWidth = 0;
var subtitleHeight = 0;
var transportBar = 0;
transportBar = 58;
var minWidth = 280;
function resize(w,h) { //take in the height and width of the plugin window
if(minWidth < subtitleWidth){
minWidth = subtitleWidth;
}
var contentFurnitureHeight = 64; //the sum height of the html elements on the page EXCLUDING the video window
if(w < minWidth){
width = minWidth;
}else{
width = w;
}
height = h + (contentFurnitureHeight + transportBar + subtitleHeight);
resizeForContentSize(width,height);
}
function resizeForContentSize(contentWidth,contentHeight) {
var titleBar = 26;
var windowBarWidth = 0;
var statusHeight = 0;
var xpSecurityInfo = 23;
var firefoxStatus = 23;
var flickoverMargin = 20; //for mozilla which puts scrollbars on the window by default unless it's oversized first
if(navigator.platform == 'Win32'){
windowBarWidth = 12;
titleBar = 32;
statusHeight = 6;
}
if(document.all){
statusHeight += xpSecurityInfo; //for security zone info on MSIE
}else if(document.layers){
statusHeight = 0;
}
height = contentHeight + titleBar + statusHeight;
width = contentWidth + windowBarWidth;
if (!(document.layers || document.all)){
height += firefoxStatus;
window.resizeTo(width + flickoverMargin , height + flickoverMargin);
}
window.resizeTo(width , height);
}
fullscreen_on = new Image();
fullscreen_on.src = '/mediaselector/images/en/fullscreen_on.gif';
function switchOn(img) {
document.images[img].src = '/mediaselector/images/en/' + img + '_on.gif';
}
function switchOff(img) {
document.images[img].src = '/mediaselector/images/en/' + img + '_off.gif';
}
function changePrefs(){
resizeForContentSize(425,298);
location.href='http://www.bbc.co.uk/mediaselector/check/media/video/otdvideo/86/05/03/3118_03-05-86?bgc=6699CC&nbram=1&bbram=1&size=4x3&news=1&pref s=1';
}
function closeMe() {
setTimeout('self.close()',1000);
}
//-->
</script>
<script language="Javascript">
<!--
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)){
document.write('<style type="text/css">');
document.write('body {overflow: auto;}');
document.write('</style>');
}
-->
</script>
</head>
<body bgcolor="#000000" text="#000000" link="#000000" vlink="#000000" alink="#0000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
onload="setPage();resize(192,144);">
<table width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#000000">
<tr>
<td align="center">
<!-- Top Banner table --><!--width="91" height="24" -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="32" valign="top" bgcolor="#6699CC" width="96"><img src="/mediaselector/images/logo_6699CC.gif" alt="BBC" border="0"></td>
<td bgcolor="6699CC" align="right"><div class="redBanner"> </div></td>
</tr>
<tr><td colspan="2"><img src="/furniture/tiny.gif" alt="" width="1" height="5"></td></tr>
<tr><td bgcolor="#626668" height="22"><div class="greyBanner"><a href="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" onclick="closeMe();" class="vidHead"><font size="1">Launch this in standalone player</font></a></div></td>
<td bgcolor="#626668" align="right">
<img src="/furniture/tiny.gif" alt="" width="1" height="5">
</td></tr>
<tr><td colspan="2"><img src="/furniture/tiny.gif" alt="" width="1" height="5"></td></tr>
</table>
<!-- Top Banner table -->
<script language="JavaScript">
<!--
if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
}
//-->
</script>
<table cellspacing="0" cellpadding="0" border="0" bgcolor="#000000">
<tr><td bgcolor="#000000" valign="bottom" align="center" width="100%">
<!-- Real Embed SSITool (Embed pt1 of 2) v1.1 - do not copy, see http://intracat/ssi/ for usage -->
<script language="Javascript">
<!-- //
var ssit_RealPresent=0;
var ssit_RealPlayer4=0;
var ssit_RealPlayer5=0;
var ssit_RealPlayerG2=0;
var ssit_bIsMac5=((navigator.appVersion.indexOf("Macin tosh") != -1) && (navigator.appVersion.indexOf("MSIE 5") != -1));
var ssit_bIsOpera=(navigator.userAgent.indexOf("Opera" ) != -1);
if ((navigator.userAgent.indexOf("MSIE")<0 ) || (ssit_bIsMac5) || (ssit_bIsOpera)) {
numPlugins = navigator.plugins.length;
for (ssit_i = 0; ssit_i < numPlugins; ssit_i++) {
plugin = navigator.plugins[ssit_i];
if ((plugin.name.indexOf("RealPlayer") != -1) || (plugin.name.indexOf("RealOne") != -1) || (plugin.name=="rpnp.so")){
ssit_RealPresent=1;
}
}
}
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1) && (!ssit_bIsOpera)){
document.writeln(' <script language="VBScript"> ');
document.writeln(' on error resume next ');
document.writeln(' ssit_RealPlayerG2 = (NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control"))) ');
document.writeln(' ssit_RealPlayer5 = (NOT IsNull(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)"))) ');
document.writeln(' ssit_RealPlayer4 = (NOT IsNull(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit)"))) ');
document.writeln(' <\/script> ');
}
// Set Mac IE3 and IE4 opt-out - attempts to play regardless
var ssit_bIsMac = ((navigator.appVersion.indexOf("Macintosh") != -1) && ((navigator.appVersion.indexOf("MSIE") != -1) && (!ssit_bIsMac5)));
// End Mac IE3/4 opt-out
if (ssit_RealPresent || ssit_RealPlayerG2 || ssit_RealPlayer5 || ssit_RealPlayer4 || ssit_bIsMac)
{
document.write ('<object id="rp1" name="rp1" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="144" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="ImageWindow"><param name="console" value="av"><embed name="rp1" id="rp1" border="0" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width="192" height="144" autostart="true" controls="ImageWindow" console="av" type="audio/x-pn-realaudio-plugin"></embed></object><noembed><a href="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram">Play the clip in RealPlayer</a></noembed>'); }
else {
document.write('<div class="downloadPrompt" align="left"><font size="1" color="#00FF66"><b>Your browser has not detected a RealPlayer plugin. It may be that you need to download RealPlayer or adjust your browser settings.<br><br>');
document.write('For help downloading or upgrading RealPlayer for free, visit our <a href="http://www.bbc.co.uk/radio/audiohelp.shtml?focuswin" target="_blank" class="downloadLink">audio/video help</a> page<br><br>');
document.write('Alternatively you can try to <a href="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" class="downloadLink">play the clip in the standalone player</a> or <a href="http://www.bbc.co.uk/mediaselector/check/media/video/otdvideo/86/05/03/3118_03-05-86?bgc=6699CC&nbram=1&bbram=1&size=4x3&news=1&pref s=1" onclick="changePrefs()" class="downloadLink">change your preferences</a>.</b></font></div>');
}
function setFullScreen() {
if (isIE) {
playerObj = "document.all.rp1";
} else {
playerObj = "document.embeds['rp1']";
}
playState = eval(playerObj + ".GetPlayState()");
if((playState==0) || (playState==1)) {
alert("A clip must be started before you can set it to full size.");
}
else {
alert("Switching to fullscreen mode...\n\n(Press Esc to return to the desktop)");
eval(playerObj +".SetFullScreen()");
}
}
//function setFullScreen() {
//playState = document.rp1.GetPlayState();
// if((playState==0) || (playState==1)) {
// alert("A clip must be started before you can set it to full size.");
// }
// else {
// alert("Press Esc to return to the original size.");
// document.rp1.SetFullScreen();
// }
//}
// -->
</script>
<noscript><object id="rp1" name="rp1" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="144" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="ImageWindow"><param name="console" value="av"><embed name="rp1" id="rp1" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width=192" height="144" autostart="true" controls="ImageWindow" console="av" type="audio/x-pn-realaudio-plugin"></embed></object></noscript>
<!-- END Real Embed SSITool -->
</td></tr>
<script language="JavaScript">
<!--
if (ssit_RealPresent || ssit_RealPlayerG2 || ssit_RealPlayer5 || ssit_RealPlayer4 || ssit_bIsMac) {
document.write('<tr><td align="center" height="30"><object id="rp2" name="rp2" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="30" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="StatusBar"><param name="console" value="av"><embed name="rp2" id="rp2" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width="192" height="30" controls="StatusBar" console="av" type="audio/x-pn-realaudio-plugin"></embed></object></td></tr>'); document.write('<tr><td align="center" height="28"><object id="rp3" name="rp3" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="28" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="ControlPanel"><param name="console" value="av"><embed name="rp3" id="rp3" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width="192" height="28" controls="ControlPanel" console="av" type="audio/x-pn-realaudio-plugin"></embed></object></td></tr>');
}
// -->
</script>
<noscript>
<tr><td align="center" height="30"><object id="rp2" name="rp2" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="30" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="StatusBar"><param name="console" value="av"><embed name="rp2" id="rp2" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width="192" height="30" controls="StatusBar" console="av" type="audio/x-pn-realaudio-plugin"></embed></object></td></tr> <tr><td align="center" height="28"><object id="rp3" name="rp3" classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="192" height="28" border="0"><param name="autostart" value="true"><param name="src" value="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram"><param name="controls" value="ControlPanel"><param name="console" value="av"><embed name="rp3" id="rp3" src="http://news.bbc.co.uk/media/video/otdvideo/86/05/03/nb/3118_03-05-86_4x3_nb.ram" width="192" height="28" controls="ControlPanel" console="av" type="audio/x-pn-realaudio-plugin"></embed></object></td></tr>
</noscript>
</table>
</td></tr></table>
</body>
</html>
|
pls can somebody tell me how to integrate this to vBRadio v1.0 ?