2009年4月19日 星期日

//文件名:radio.js
var g_MediaList = [
["Please choose one...", ""],
["音乐之声", "mms://mms.cnr.cn/live3"],
["长沙音乐频道", "mms://real.rednet.cn/1061"],
["猫扑网络电台", "mms://ting.mop.com/mopradio"],
["青檬网络电台", "mms://pub.qmoon.net:8009/audio"],
["QQ电台综艺之声", "http://qr.fm.qq.com/qqradio?qqradio"],
["银河网络电台", "http://union.itlearner.com/radio/asx/iwant.asx"],
["45度网络电台", "mms://szlive.45doo.com/live"],
["中国国际广播电台", "mms://living.chinabroadcast.cn/inet"],
["----广播(港澳台)----", ""],
["澳门电台", "mms://202.175.80.10/LiveAudio"],

["----电视(大陆)----", ""],
["CCTV-1", "mms://202.102.249.220/live_tv01"],
["云南卫视", "mms://202.102.249.220/live_tv04"],
["XINHUATV", "http://202.109.80.136/channel3"],
["南京新闻综合频道", "mms://live.njbg.com.cn:88/NJTV01"],
["南京影视频道", "mms://live.njbg.com.cn:88/NJTV02"],
["南京文体频道", "mms://live.njbg.com.cn:88/NJTV03"],
["南京生活频道", "mms://live.njbg.com.cn:88/NJTV04"],
["南京教科频道", "mms://live.njbg.com.cn:88/NJTV05"],
["南京信息频道", "http://live.njbg.com.cn:88/NJTV06"],
["南京少儿频道", "mms://live.njbg.com.cn:88/NJTV07"],
["南京18频道", "mms://live.njbg.com.cn:88/NJTV18"],

["----音乐视频----", ""],
["艳女舞曲", "http://video-v1.9you.com/421b47ffd946ca083b65cd668c6b17e6/flv/u/x/uxeo6pywy.flv"],
["伤感女孩", "http://shiyang.ucoz.com/mp3/duobideai.mp3"],

["----电视(国外)----", ""],
["美国音乐台", "mms://stream.nwez.net/nwez3"],
["法国BFM TV", "mms://vipmms9.yacast.net/bfm_bfmtv"],
["Discovery探索频道", "mms://media-wm.cac.washington.edu/ResearchTV%20Live%20(LAN)"],
["加拿大综合电视台", "http://video.cpac.ca/CPAC1E/.asf"],
["韩国TBC频道", "mms://203.251.80.180/tbc_tv"],
["日本LFX频道", "mms://bbn-lf.stream.ne.jp/lfx2"],
["瑞士TELEM", "mms://wms01.green.ch/telem1"]
];

var g_RealList = [
["Please choose one...", ""],
["中央人民广播电台一套", "rtsp://211.89.225.1:554/encoder/cnr1"],
["中央人民广播电台二套", "rtsp://211.89.225.1:554/encoder/cnr2"],
["中央人民广播电台三套", "rtsp://211.89.225.1:554/encoder/cnr3"],
["北京音乐台", "http://www.bmr.com.cn/script/live.ram"],
["重庆新闻台", "rtsp://218.201.40.221/encoder/live.rm"],
["重庆音乐台", "rtsp://218.201.40.221/encoder/music.rm"],
["宁波新闻频道", "rtsp://real.nbradio.com/encoder/xwpd.rm"],
["宁波音乐之声", "rtsp://broadcast.nbradio.com/encoder/jkzs.rm"],
["成都飞跃调频电台", "rtsp://61.157.96.231:554/broadcast/cd/broadcast/djok.rm"],
["成都电台新闻广播", "rtsp://61.157.96.231:554/broadcast/cd/broadcast/1.rm"],
["21CN网络电台", "rtsp://radio.21cn.com/id/live1.smil"],
["----广播(国外)----", ""],
["香港电台普通话台", "http://www.rthk.org.hk/live6.ram"],
["法国国际广播电台", "http://www.tv-radio.com/ondemand/rfi/mere/mandarin/info/mandarin_0930-1030-20k.ram"],
["日本国际广播电台(NHK)", "http://www.nhk.or.jp/rj/ram/en/chinese.ram"],
["美国之音(英语)", "rtsp://a1702.l211048984.c2110.g.lr.akamaistream.net:554/live/D/1702/2110/v0001/reflector:48984"],
["美国之音(中文)", "rtsp://a1702.l211020409.c2110.g.lr.akamaistream.net:554/live/D/1702/2110/v0001/reflector:23641"],
["BBC News Summary", "rtsp://rmv7.bbc.net.uk/worldservice/summary.rm"],
["BBC World Service (Live)", "http://www.bbc.co.uk/worldservice/ram/live_infent.ram"],
["BBC音乐站", "http://www.bbc.co.uk/radio1/realaudio/media/r1livev7.ram"],
["BBC(中文)", "rtsp://rmv8.bbc.net.uk/chinese/ch_hold_anno.ra"],
["BBC ASIAN NETWORK", "http://www.bbc.co.uk/asiannetwork/rams/asiannetwork.ram"],
["ABC News Radio", "http://www.abc.net.au/streaming/newsradio.ram"],
["WRN CBC", "http://www.wrn.org/audio/rnz_eng.ram"],
["----电视(国外)----", ""],
["美国NASA频道", "http://www.nasa.gov/ram/35037main_portal.ram"]
];

var g_MediaListEn = [
["Please choose one...", ""],
["America Music", "mms://stream.nwez.net/nwez3"],
["France BFM TV", "mms://vipmms9.yacast.net/bfm_bfmtv"],
["Discovery Channel", "mms://media-wm.cac.washington.edu/ResearchTV%20Live%20(LAN)"],
["Canada TV", "http://video.cpac.ca/CPAC1E/.asf"],
["Korea TBC", "mms://203.251.80.180/tbc_tv"],
["Japan LFX", "mms://bbn-lf.stream.ne.jp/lfx2"],
["Switzerland TELEM", "mms://wms01.green.ch/telem1"],
["----MP3-Video----", ""],
["MP3-A place nearby-Lene Marlin", "http://www.ell.com.cn/ejsound/jre061107.mp3"],
["Flash-Fishing", "http://218.87.253.164:8088/tfs92006/upload_swf/ftp/20060516/6.swf"]
];

var g_RealListEn = [
["Please choose one...", ""],
["BBC News Summary", "rtsp://rmv7.bbc.net.uk/worldservice/summary.rm"],
["BBC World Service (Live)", "http://www.bbc.co.uk/worldservice/ram/live_infent.ram"],
["BBC Music", "http://www.bbc.co.uk/radio1/realaudio/media/r1livev7.ram"],
["BBC ASIAN NETWORK", "http://www.bbc.co.uk/asiannetwork/rams/asiannetwork.ram"],
["VOA News Now", "rtsp://a1702.l211048984.c2110.g.lr.akamaistream.net:554/live/D/1702/2110/v0001/reflector:48984"],
["ABC News Radio", "http://www.abc.net.au/streaming/newsradio.ram"],
["WRN CBC", "http://www.wrn.org/audio/rnz_eng.ram"],
["----TV----", ""],
["America NASA Channel", "http://www.nasa.gov/ram/35037main_portal.ram"]
];
function MediaSelectSubmit(nType){
var List = (nType == 0 ? g_MediaList : g_MediaListEn);
//alert(navigator.appName);
var MediaPlayer = document.getElementById("MediaPlayer");
//目前仍可直接使用id进行访问(FF和IE均可),但w3c推荐使用decument.getElementById()
var MediaSelect = document.getElementById("MediaSelect");
if(navigator.appName == "Netscape"){
MediaPlayer = document.getElementById("MediaPlayerFF");
MediaPlayer.controls.stop();
MediaPlayer.src = List[MediaSelect.value][1];
MediaPlayer.controls.play();
}
else{
MediaPlayer.controls.stop();
//旧版本的wmp,调用方式为MediaPlayer.Stop()等,同时还有open()方法(wmp11好像不支持open())
MediaPlayer.URL = List[MediaSelect.value][1];
MediaPlayer.controls.play();
}
MediaPlayer.focus();
}

function MediaSelectWrite(nType){
var List = (nType == 0 ? g_MediaList : g_MediaListEn);
var nLen = List.length - 1;
for (var i = 0; i <= nLen; i++){
document.write("");
}
}

function RealSelectSubmit(nType){
var List = (nType == 0 ? g_RealList : g_RealListEn);
var RealPlayer = document.getElementById("RealPlayer");
var RealSelect = document.getElementById("RealSelect");
if(navigator.appName == "Netscape"){
RealPlayer = document.getElementById("RealPlayerFF");
RealPlayer.DoStop();
RealPlayer.SetSource(List[RealSelect.value][1]);
RealPlayer.DoPlay();
}
else{
RealPlayer.DoStop();
RealPlayer.SetSource(List[RealSelect.value][1]);
RealPlayer.DoPlay();
}
RealPlayer.focus();
}

function RealSelectWrite(nType){
var List = (nType == 0 ? g_RealList : g_RealListEn);
var nLen = List.length - 1;
for (var i = 0; i <= nLen; i++){
document.write("");
}
}

function MediaOpenUrl(){
var strUrl = prompt("","http://");
if (strUrl.length < 1)
return;
var MediaPlayer = document.getElementById("MediaPlayer");
if(navigator.appName == "Netscape"){
MediaPlayer = document.getElementById("MediaPlayerFF");
}
MediaPlayer.controls.stop();
if(navigator.appName == "Netscape"){
MediaPlayer.src = strUrl;
}
else{
MediaPlayer.URL = strUrl;
}
MediaPlayer.controls.play();
}

function RealOpenUrl(){
var strUrl = prompt("","http://");
if (strUrl.length < 1)
return;
var RealPlayer = document.getElementById("RealPlayer");
if(navigator.appName == "Netscape"){
RealPlayer = document.getElementById("RealPlayerFF");
}
RealPlayer.DoStop();
RealPlayer.SetSource(strUrl);
RealPlayer.DoPlay();
}

function PlayerZoom(){
var MediaPlayer = document.getElementById("MediaPlayer");
var RealPlayer = document.getElementById("RealPlayer");
if(navigator.appName == "Netscape"){
MediaPlayer = document.getElementById("MediaPlayerFF");
RealPlayer = document.getElementById("RealPlayerFF");
if (MediaPlayer.height<100){
RealPlayer.controls = "ImageWindow,ControlPanel,StatusBar";
// MediaPlayer.SetShowStatusBar(true);
// MediaPlayer.SetShowControls(true);
// MediaPlayer.SetShowDisplay(true);
MediaPlayer.height = RealPlayer.height = (MediaPlayer.width*0.75 + 66);//366
}
else{
RealPlayer.controls = "ControlPanel,StatusBar";
MediaPlayer.height = RealPlayer.height = 66;
}
}
else{
if (MediaPlayer.height<100){
RealPlayer.controls = "ImageWindow,ControlPanel,StatusBar";
MediaPlayer.height = RealPlayer.height = (MediaPlayer.width*0.75 + 66);//366
}
else{
RealPlayer.controls = "ControlPanel,StatusBar";
MediaPlayer.height = RealPlayer.height = 66;
}
}

沒有留言:

張貼留言