if (e.type === 'keypress' && !(e.key === ' ' || e.key === 'Enter'))
return;
e.preventDefault();
- var stream = $('#DirectStreamPanik').get(0);
+ var stream = $('#LiveStream').get(0);
if (stream.paused == false){
if ($(this).find('.player-stop')) {
- $('#DirectStreamPanik').trigger('pause'); // icon change
+ $('#LiveStream').trigger('pause'); // icon change
stream.pause();
- var par = $('#DirectStreamPanik').parent()
- var dup = $('#DirectStreamPanik').clone();
- $('#DirectStreamPanik').remove();
+ var par = $('#LiveStream').parent()
+ var dup = $('#LiveStream').clone();
+ $('#LiveStream').remove();
$(dup).appendTo($(par));
add_stream_handlers();
} else {
});
function add_stream_handlers() {
- $('#DirectStreamPanik').on('play',function(){
- $('audio:not(#DirectStreamPanik)').each(function(){this.pause();});
+ $('#LiveStream').on('play',function(){
+ $('audio:not(#LiveStream)').each(function(){this.pause();});
$('#streamSymbol').removeClass('player-start').addClass('player-stop');
}).on('pause',function(){
- //$('audio:not(#DirectStreamPanik)').each(function(){this.pause();});
+ //$('audio:not(#LiveStream)').each(function(){this.pause();});
$('#streamSymbol').addClass('player-start').removeClass('player-pause').removeClass('player-stop');
});
}
self.controlButtons['playpause'].addClass('resymbol');
},
onPlay:function(self){
- $('#DirectStreamPanik')[0].pause();
+ $('#LiveStream')[0].pause();
},
onAdd:function(self){
//self.isLastAdd[0].scrollIntoView();