Skip to content

Instantly share code, notes, and snippets.

@peterwzhang
Last active December 30, 2024 00:49
Show Gist options
  • Save peterwzhang/2efd5c29c872256abb2986569e2a09a4 to your computer and use it in GitHub Desktop.
Save peterwzhang/2efd5c29c872256abb2986569e2a09a4 to your computer and use it in GitHub Desktop.
Script to allow more than 4 multi streams on streameast - paste into JS console to use.
$('body').on('click', '#MultiStreamTakimlar li', function(e) {
e.preventDefault();
let id = $(this).find('a').attr('id')
let title = $(this).find('.stream-title').text()
$('#row-stream-' + id).hide();
let html = '<div class="col-lg-6 PlayerlarDuzenlemesi" style="float: left;" id="Mac-' + id + '"> </div>'
$('#Playerlar').append(html)
$.ajax({
url: '/multi-stream-player/' + id,
type: 'get',
dataType: 'text',
success: function(data) {
$('#Mac-' + id).html(data)
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment