Yayının Otomatik Başlaması İstiyorum | 
                        14 Mesajlar | 2.895 Okunma | ||
playsinline autoplay muted loop  bu parametreleri ekleyip deneyin bir de<script>
	var data;
	var sn = "429d-d51aa-c2ec-df694-6a3gc";
	var videoPlayer;
	var ea = "";
//	showChannels("f41c2a4c268a288ac62a47aad6600b235d01f31951e0e2f6e9e422d5d88dafe80");
    $.ajax({url: "https://site.com/loadbalancer",
                dataType: "text",
        type: "GET",
        success: function(data) {
                ea = data.split('=')[1];
            	showChannels("f41c2a4c268a288acsda62a47aad6600b235d01f31951e0e2f6e9e422d5d88dafe80");
        }
    });
	function performGet (url){
		console.log("GETTING URL: " + url);
		try{
			var request = new XMLHttpRequest();
			request.open('GET', url, false);  // `false` makes the request synchronous
			request.send(null);
			console.log("request.status: " + request.status);
			if (request.status === 200) {
				console.log(request.responseText);
				return request.responseText;
			}
		} catch (e){
			console.log(e);
		}
	}
	function clear (myNode){
		while (myNode.firstChild) {
			myNode.removeChild(myNode.firstChild);
		}
	}
	
	
$(function(){
    $.each(["show","hide", "toggleClass", "addClass", "removeClass"], function(){
        var _oldFn = $.fn[this];
        $.fn[this] = function(){
            var hidden = this.find(":hidden").add(this.filter(":hidden"));
            var visible = this.find(":visible").add(this.filter(":visible"));
            var result = _oldFn.apply(this, arguments);
            hidden.filter(":visible").each(function(){
                $(this).triggerHandler("show");
            });
            visible.filter(":hidden").each(function(){
                $(this).triggerHandler("hide");
            });
            return result;
        }
    });
});
$("#pagetwo").bind("show", function(){
	if (document.getElementById("stream_id_0") == null) { 
		window.location='https://www.site.com';
	}
	if (document.getElementById("videoplayer") != null) {
		//var player = document.getElementById("videoplayer");
		videoPlayer.pause();
		videoPlayer = null;
	}
});
$("#video").bind("show", function(){
	if (document.getElementById("videoplayer") == null) {
		window.location='https://www.site.com';
	}
});
</script>