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:
Fergal Moran
2013-06-14 14:36:17 +01:00
parent f255c81016
commit e78f049bbb
34 changed files with 14151 additions and 660 deletions

View File

@@ -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 || ""
});
}
};