mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-26 11:37:33 +00:00
26 lines
1010 B
JavaScript
26 lines
1010 B
JavaScript
if (!com) var com = {};
|
|
if (!com.podnoms) com.podnoms = {};
|
|
|
|
com.podnoms.settings = {
|
|
urlRoot: '{{ API_URL }}',
|
|
liveStreamRoot: 'http://{{ LIVE_STREAM_URL }}:{{ LIVE_STREAM_PORT }}/{{ LIVE_STREAM_MOUNT }}',
|
|
streamInfoUrl: 'http://{{ LIVE_STREAM_INFO_URL }}',
|
|
volume: '{{ DEFAULT_AUDIO_VOLUME }}',
|
|
setupPlayer: function(data, id){
|
|
com.podnoms.player.setupPlayer({
|
|
waveFormEl:$('#waveform-' + id),
|
|
playHeadEl:$('#playhead-player-' + id),
|
|
loadingEl:$('#progress-player-' + id),
|
|
seekHeadEl:$('#player-seekhead'),
|
|
playButtonEl:$('#play-pause-button-small-' + id),
|
|
url:data.stream_url,
|
|
success:function () {
|
|
_eventAggregator.trigger("track_playing");
|
|
_eventAggregator.trigger("track_changed", data);
|
|
},
|
|
error:function () {
|
|
alert("Error playing mix. Do please try again.");
|
|
}
|
|
});
|
|
}
|
|
}; |