function player (divid,typ,breite,hoehe,file,streamer,flashid) { if(typ == 'flash') { var so = new SWFObject("/resources/skripte/_flashplayer/41/player.swf","jstestc",breite,hoehe,"7"); var parameter = "autostart=true&file=" + file + "&streamer=" + streamer + "&type=video"; so.addParam("allowfullscreen","true"); so.addParam('allowscriptaccess','always'); so.addParam("flashvars",parameter); so.addVariable("id",flashid); so.write(divid); } if(typ == 'silverlight') { var cnt = document.getElementById(divid); var src = "/resources/skripte/_silverlightplayer/wmvplayer.xaml"; var cfg = {height:hoehe, width:breite, file:file, autostart:'true'}; var ply = new jeroenwijering.Player(cnt,src,cfg); } } function idplayer (divid,typ,breite,videobreite,metaid,fileid) { var hoehe = Math.round(breite / 1.78 + 19); if(typ == 'flvm' || typ == 'flvs' || typ == 'h264m') { if(typ == 'h264m') { var extension = ".mp4"; } else { var extension = ".flv"; } var so = new SWFObject("/resources/skripte/_flashplayer/41/player.swf","jstestc",breite,hoehe,"7"); var parameter = "autostart=true&file=mediabase/" + metaid + "/" + metaid + "_" + fileid + "_" + videobreite + extension + "&streamer=rtmpt://fc-ondemand.radiobremen.de/ondemand/&type=video"; var flashid = metaid + "_" + fileid + "_" + videobreite + extension; so.addParam("allowfullscreen","true"); so.addParam('allowscriptaccess','always'); so.addParam("flashvars",parameter); so.addVariable("id",flashid); so.write(divid); } if(typ == 'wmvm' || typ == 'wmvs') { var extension = ".wmv"; var cnt = document.getElementById(divid); var src = "/resources/skripte/_silverlightplayer/wmvplayer.xaml"; var file = "mms://windowsmedia.radiobremen.de/a792/e3/mediabase/" + metaid + "/" + metaid + "_" + fileid + "_" + videobreite + extension; var cfg = {height:hoehe, width:breite, file:file, autostart:'true'}; var ply = new jeroenwijering.Player(cnt,src,cfg); } } function ardformatplayer_keinautostart (divid,breite,ardformat,metaid,fileid,bildurl) { var hoehe = Math.round(breite / 1.78 + 19); if(ardformat == '1.12' || ardformat == '1.16' || ardformat == 'h264m') { if(ardformat == 'h264m') { var extension = ".mp4"; var videobreite = 512; } else { var extension = ".flv"; if(ardformat == '1.12') { var videobreite = 512; } if(ardformat == '2.12') { var videobreite = 384; } if(ardformat == '1.16') { var videobreite = 256; } if(ardformat == '2.18') { var videobreite = 192; } } var so = new SWFObject("/resources/skripte/_flashplayer/41/player.swf","jstestc",breite,hoehe,"7"); var parameter = "autostart=false&image=" + bildurl + "&file=mediabase/" + metaid + "/" + metaid + "_" + fileid + "_" + videobreite + extension + "&streamer=rtmpt://fc-ondemand.radiobremen.de/ondemand/&type=video"; var flashid = metaid + "_" + fileid + "_" + videobreite + extension; so.addParam("allowfullscreen","true"); so.addParam('allowscriptaccess','always'); so.addParam('abouttext','Radio Bremen - alle Rechte vorbehalten'); so.addParam("flashvars",parameter); so.addVariable("id",flashid); so.write(divid); } if(ardformat == '1.10' || ardformat == '1.14') { var extension = ".wmv"; if(ardformat == '1.10') { var videobreite = 512; } if(ardformat == '2.10') { var videobreite = 384; } if(ardformat == '1.14') { var videobreite = 256; } if(ardformat == '2.16') { var videobreite = 192; } var cnt = document.getElementById(divid); var src = "/resources/skripte/_silverlightplayer/wmvplayer.xaml"; var file = "mms://windowsmedia.radiobremen.de/a792/e3/mediabase/" + metaid + "/" + metaid + "_" + fileid + "_" + videobreite + extension; var cfg = {height:hoehe, width:breite, file:file, autostart:'false'}; var ply = new jeroenwijering.Player(cnt,src,cfg); } } function ardformatplayer_autostart (divid,breite,ardformat,metaid,fileid,bildurl) { var hoehe = Math.round(breite / 1.78 + 19); if(ardformat == '1.12' || ardformat == '1.16' || ardformat == 'h264m' || ardformat == '3.6') { if(ardformat == 'h264m') { var extension = ".mp4"; var videobreite = "_512"; } else { var extension = ".flv"; if(ardformat == '3.6') { var videobreite = "_audio-s"; } if(ardformat == '1.12') { var videobreite = "_512"; } if(ardformat == '2.12') { var videobreite = "_384"; } if(ardformat == '1.16') { var videobreite = "_256"; } if(ardformat == '2.18') { var videobreite = "_192"; } } var so = new SWFObject("/resources/skripte/_flashplayer/41/player.swf","jstestc",breite,hoehe,"7"); var parameter = "autostart=true&image=" + bildurl + "&file=mediabase/" + metaid + "/" + metaid + "_" + fileid + videobreite + extension + "&streamer=rtmpt://fc-ondemand.radiobremen.de/ondemand/&"; var flashid = metaid + "_" + fileid + videobreite + extension; so.addParam("allowfullscreen","true"); so.addParam('allowscriptaccess','always'); so.addParam('abouttext','Radio Bremen - alle Rechte vorbehalten'); so.addParam("flashvars",parameter); so.addVariable("id",flashid); so.write(divid); } if(ardformat == '1.10' || ardformat == '1.14' || ardformat == '3.5') { var extension = ".wmv"; if(ardformat == '1.10') { var videobreite = '_512'; } if(ardformat == '2.10') { var videobreite = '_384'; } if(ardformat == '1.14') { var videobreite = '_256'; } if(ardformat == '2.16') { var videobreite = '_192'; } if(ardformat == '3.5') { var videobreite = ''; var extension = ".wma"; } var cnt = document.getElementById(divid); var src = "/resources/skripte/_silverlightplayer/wmvplayer.xaml"; var file = "mms://windowsmedia.radiobremen.de/a792/e3/radiobremen/mediabase/" + metaid + "/" + metaid + "_" + fileid + videobreite + extension; var cfg = {height:hoehe, width:breite, file:file, autostart:'true'}; var ply = new jeroenwijering.Player(cnt,src,cfg); } } //Geändert von Subshell: Parameter modus um Anzeige einzuschränken (kann sein: 'only_image', 'only_controls'. Defaultmäßig wird alles (Image und Controls) angezeigt) function ardformatplayer (divid,breite,ardformat,metaid,fileid,bildurl,autostart,modus) { if(autostart == 'autostart') { var autostart = 'true'; } else { var autostart = 'false'; } var hideControls = false; if(modus == 'only_controls') { var hoehe = 20; } else { if(modus == 'only_image') { hideControls = true; } var hoehe = Math.round(breite / 1.78 + (hideControls ? 0 : 20)); if(breite == 512) { var hoehe = 288 + 20; } } if(ardformat == '1.12' || ardformat == '1.24' || ardformat == '1.16' || ardformat == '1.27' || ardformat == '2.12' || ardformat == '2.18' || ardformat == 'h264m' || ardformat == '3.6' || ardformat == '2.26' || ardformat == '3.3' || ardformat == '3.4') { if(ardformat == 'h264m' || ardformat == '1.24' || ardformat == '2.26' || ardformat == '1.27') { var extension = ".mp4"; if(ardformat == 'h264m' || ardformat == '1.24') { var videobreite = "_512"; } if(ardformat == '1.27') { var videobreite = "_256"; } if(ardformat == '2.26') { var videobreite = "_384"; } } else { var extension = ".flv"; if(ardformat == '3.6' || ardformat == '3.3' || ardformat == '3.4') { var videobreite = "_audio-s"; } if(ardformat == '1.12') { var videobreite = "_512"; } if(ardformat == '2.12') { var videobreite = "_384"; } if(ardformat == '1.16') { var videobreite = "_256"; } if(ardformat == '2.18') { var videobreite = "_192"; } } var so = new SWFObject("/resources/skripte/_flashplayer/41/player.swf","jstestc",breite,hoehe,"7"); var parameter = (hideControls ? "controlbar=none&" : "" ) + "autostart=" + autostart + "&image=" + bildurl + "&file=mediabase/" + metaid + "/" + metaid + "_" + fileid + videobreite + extension + "&streamer=rtmpt://fc-ondemand.radiobremen.de/ondemand/&bufferlength=1&"; var flashid = metaid + "_" + fileid + videobreite + extension; so.addParam("allowfullscreen","true"); so.addParam('allowscriptaccess','always'); so.addParam('abouttext','Radio Bremen - alle Rechte vorbehalten'); so.addParam("flashvars",parameter); so.addVariable("id",flashid); so.write(divid); } if(ardformat == '1.10' || ardformat == '1.14' || ardformat == '2.10' || ardformat == '2.16' || ardformat == '3.5') { var extension = ".wmv"; if(ardformat == '1.10') { var videobreite = '_512'; } if(ardformat == '2.10') { var videobreite = '_384'; } if(ardformat == '1.14') { var videobreite = '_256'; } if(ardformat == '2.16') { var videobreite = '_192'; } if(ardformat == '3.5') { var videobreite = ''; var extension = ".wma"; } var cnt = document.getElementById(divid); var src = "/resources/skripte/_silverlightplayer/wmvplayer.xaml"; var file = "mms://windowsmedia.radiobremen.de/a792/e3/mediabase/" + metaid + "/" + metaid + "_" + fileid + videobreite + extension; if(hideControls){ var cfg = {height:hoehe, width:breite, file:file, autostart:autostart, shownavigation:false}; } else { var cfg = {height:hoehe, width:breite, file:file, autostart:autostart}; } var ply = new jeroenwijering.Player(cnt,src,cfg); } } //Hinzugefügt von subshell: Funktion zum Laden der Playerkonfiguration aus dem Cookie des Users function ardformatplayer_cookieconfig(divid,breite,formats,defaultformat,cookiename,metaid,filenames,bildurl,autostart,modus){ var cookie = WM_readCookie(cookiename); var format = formats[cookie]; if (format == null){ format = defaultformat; } var filename = filenames[format]; if (format == 'h264'){ format = 'h264m'; } ardformatplayer(divid,breite,format,metaid,filename,bildurl,autostart,modus); } function ardformatplayerclassic (divid,breite,ardformat,metaid,fileid,bildurl,autostart,modus) { if(autostart == 'autostart') { var autostart = 'true'; } else { var autostart = 'false'; } var hideControls = false; if(modus == 'only_controls') { var hoehe = 20; } else { if(modus == 'only_image') { hideControls = true; } var hoehe = Math.round(breite / 1.78 + (hideControls ? 0 : 20)); if(breite == 512) { var hoehe = 288 + 20; } } if(ardformat == '1.12' || ardformat == '1.16' || ardformat == '1.24' || ardformat == '1.27' || ardformat == '2.12' || ardformat == '2.29' || ardformat == '2.18' || ardformat == 'h264m' || ardformat == '3.6' || ardformat == '2.26' || ardformat == '3.3' || ardformat == '3.4') { if(ardformat == 'h264m' || ardformat == '2.26' || ardformat == '1.24' || ardformat == '1.27' || ardformat == '2.29') { var extension = ".mp4"; if(ardformat == 'h264m' || ardformat == '1.24') { var videobreite = "_512"; } if(ardformat == '1.27') { var videobreite = "_256"; } if(ardformat == '2.26') { var videobreite = "_384"; } if(ardformat == '2.29') { var videobreite = "_192"; } } else { var extension = ".flv"; if(ardformat == '3.6' || ardformat == '3.3' || ardformat == '3.4') { var videobreite = "_audio-s"; } if(ardformat == '1.12') { var videobreite = "_512"; } if(ardformat == '2.12') { var videobreite = "_384"; } if(ardformat == '1.16') { var videobreite = "_256"; } if(ardformat == '2.18') { var videobreite = "_192"; } } var so = new SWFObject("/resources/skripte/_flashplayer/41/player.swf","jstestc",breite,hoehe,"7"); var parameter = (hideControls ? "controlbar=none&" : "" ) + "autostart=" + autostart + "&image=" + bildurl + "&file=mediabase/" + metaid + "/" + metaid + "_" + fileid + videobreite + extension + "&streamer=rtmpt://fc-ondemand.radiobremen.de/ondemand/&bufferlength=1&"; var flashid = metaid + "_" + fileid + videobreite + extension; so.addParam("allowfullscreen","true"); so.addParam('allowscriptaccess','always'); so.addParam('abouttext','Radio Bremen - alle Rechte vorbehalten'); so.addParam("flashvars",parameter); so.addVariable("id",flashid); so.addVariable('bufferlength','5'); so.write(divid); } if(ardformat == '1.10' || ardformat == '1.14' || ardformat == '2.10' || ardformat == '2.16' || ardformat == '3.5') { var extension = ".wmv"; if(ardformat == '1.10') { var videobreite = '_512'; } if(ardformat == '2.10') { var videobreite = '_384'; } if(ardformat == '1.14') { var videobreite = '_256'; } if(ardformat == '2.16') { var videobreite = '_192'; } if(ardformat == '3.5') { var videobreite = ''; var extension = ".wma"; } var cnt = document.getElementById(divid); var src = "/resources/skripte/_silverlightplayer/wmvplayer.xaml"; var file = "mms://windowsmedia.radiobremen.de/a792/e3/mediabase/" + metaid + "/" + metaid + "_" + fileid + videobreite + extension; if(hideControls){ var cfg = {height:hoehe, width:breite, file:file, autostart:autostart, shownavigation:false}; } else { var cfg = {height:hoehe, width:breite, file:file, autostart:autostart}; } var ply = new jeroenwijering.Player(cnt,src,cfg); } }