mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-26 03:27:33 +00:00
Major refactor of inter-view messaging. Added central eventAggregator and audioController. Removed a lot of audio handling from the view and a lot of view logic from player. Still some work to go
This commit is contained in:
@@ -15,7 +15,7 @@ com.podnoms.settings = {
|
||||
staticUrl: '{{ STATIC_URL }}',
|
||||
currentUser: {{ CURRENT_USER_ID }},
|
||||
/** simple helper to take an api JSON object and initialise a player item */
|
||||
setupPlayer: function (data, id) {
|
||||
setupPlayerWrapper: function (id, stream_url) {
|
||||
com.podnoms.player.setupPlayer({
|
||||
id: id,
|
||||
boundingEl: $('#mix-container-' + id),
|
||||
@@ -24,7 +24,7 @@ com.podnoms.settings = {
|
||||
loadingEl: $('#progress-player-' + id),
|
||||
seekHeadEl: $('#player-seekhead'),
|
||||
playButtonEl: $('#play-pause-button-small-' + id),
|
||||
url: data.stream_url
|
||||
url: stream_url || ""
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user