//var imported = document.createElement('script'); //imported.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; //document.head.appendChild(imported); //$.getScript('http://releases.flowplayer.org/5.4.4/flowplayer.min.js', function() //{ // script is now loaded and executed. // put your dependent JS here. //}); //alert("h264"); //document.write(''); function trackRequest() { var req = null; try{ req = new XMLHttpRequest(); } catch (ms){ try{ req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (nonms){ try{ req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (failed){ req = null; } } } if (req == null) { alert("Error creating request object!"); } req.open("GET", "http://media.bwfamily.tv/BWFAMILY_INTRA//ViewStream?beitrag=39837&mandant=1&quality=mp4&streaming=true&statOnly=true&sid=null", true); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req.send(null); } //$(function () { // if (flashembed.isSupported([10, 1])) { // Flowplayer Flash // alert('F'); // } else { // alert('NF'); // } //}); //document.write(''); /*function getFlashVersion(){ // ie try { try { // avoid fp6 minor version lookup issues // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); try { axo.AllowScriptAccess = 'always'; } catch(e) { return '6,0,0'; } } catch(e) {} return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; // other browsers } catch(e) { try { if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; } } catch(e) {} } return '0,0,0'; } var version = getFlashVersion().split(',').shift(); if(version < 10){ //alert("Lower than 10"); }else{ //alert("10 or higher"); }*/ function playH264() { //var version = getFlashVersion().split(',').shift(); //if(version < 10){ //} else { if (!flashembed.isSupported([10, 1])) { window.location.href = "http://media.bwfamily.tv/BWFAMILY_INTRA//ViewStream?beitrag=39837&mandant=1&quality=mp4&sid=null"; /*$("head").append($("")); $.getScript("//releases.flowplayer.org/5.4.4/flowplayer.min.js", function () { }); document.write('
');*/ /*$.getScript("//releases.flowplayer.org/5.4.4/flowplayer.min.js", function () { $(".player").empty().flowplayer({ rtmp: "rtmp://stream.blacktrash.org/cfx/st", playlist: [[ { mpegurl: "http://media.blacktrash.org/ccc.m3u8" }, ]] }); });*/ alert("nf"); } else { document.write(''); flowplayer("bwfplayer_1508252100068", "http://media.bwfamily.tv/BWFAMILY_INTRA//flowplayer/flowplayer.swf", { key: '#$acbd36b39d5e55262ab', plugins: { rtmp: { url: 'http://media.bwfamily.tv/BWFAMILY_INTRA//flowplayer/flowplayer.rtmp.swf', netConnectionUrl: 'rtmp://live.bwfamily.tv/simplevideostreaming' }, controls: {display: 'none' } , content: { url: 'flowplayer.content-3.2.0.swf', width:512, height:384, top:0, left: 0, backgroundGradient:'none', borderRadius:0, padding: 0, opacity:0.0, html: '' } }, clip: { scaling: 'fit', autoPlay: true, onStart: function(clip) { trackRequest() }, url: 'mp4:39837_1000.mp4', provider: 'rtmp' }, playlist: [ { url: 'mp4:695_1000.mp4', // make duration a little shorter for this demo //duration: 7, // when this event returns false - player's default behaviour is disabled onBeforePause: function() { return false; } }, { url: 'mp4:39837_1000.mp4', autoBuffering: true , onStart: function() { this.getControls().show(); var plugin = this.getPlugin("content"); plugin.hide(); }, // when playback finishes player is resumed back to it's original state onFinish: function() { this.unload(); } } ] }); } } //document.write(''); playH264();