mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 09:38:18 +00:00
32 lines
1.3 KiB
JavaScript
Executable File
32 lines
1.3 KiB
JavaScript
Executable File
if (!com) var com = {};
|
|
if (!com.podnoms) com.podnoms = {};
|
|
|
|
com.podnoms.settings = {
|
|
REALTIME_HOST: "{{ REALTIME_HOST }}",
|
|
SOCKET_IO_JS_URL: "{{ SOCKET_IO_JS_URL }}",
|
|
urlRoot: '{{ API_URL }}',
|
|
liveStreamRoot: 'http://{{ LIVE_STREAM_URL }}:{{ LIVE_STREAM_PORT }}/{{ LIVE_STREAM_MOUNT }}',
|
|
streamInfoUrl: 'http://{{ LIVE_STREAM_INFO_URL }}',
|
|
volume: '{{ DEFAULT_AUDIO_VOLUME }}',
|
|
nag_count: {{ NAG_COUNT }},
|
|
smDebugMode: {{ SM_DEBUG_MODE }},
|
|
isDebug: {{ IS_DEBUG }},
|
|
drawTimelineOnMix: false,
|
|
staticUrl: '{{ STATIC_URL }}',
|
|
urlArgs: {{ IS_DEBUG }} ? "" : "bust="+ (new Date()).getTime(),
|
|
currentUser: {{ CURRENT_USER_ID }},
|
|
/** simple helper to take an api JSON object and initialise a player item */
|
|
setupPlayerWrapper: function (id, stream_url, el) {
|
|
com.podnoms.player.setupPlayer({
|
|
id: id,
|
|
boundingEl: $('#mix-container-' + id, el),
|
|
waveFormEl: $('#waveform-' + id, el),
|
|
playHeadEl: $('#playhead-player-' + id, el),
|
|
loadingEl: $('#progress-player-' + id, el),
|
|
seekHeadEl: $('#player-seekhead', el),
|
|
playButtonEl: $('#play-pause-button-small-' + id, el),
|
|
url: stream_url || ""
|
|
});
|
|
}
|
|
};
|