| | |
| | | //const titelElem = new Audio(titel); |
| | | self.audioElem = new Audio(titelUrl); |
| | | self.audioElem.addEventListener("ended", self.nextTrack); |
| | | self.audioCtx = new (window.AudioContext || window.webkitAudioContext)(); |
| | | const track = self.audioCtx.createMediaElementSource(self.audioElem); |
| | | track.connect(self.audioCtx.destination); |
| | | self.audioElem.play(); |
| | | self.playState = 'play'; |
| | | self.playState = 'play'; |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | |
| | | this.getTitelFromJSONObj = function(titelObj) { |
| | | //const audioElements = document.querySelectorAll('.entity-eintrag'); |
| | | const host = 'http://' + window.location.host + '/tango'; |
| | |
| | | self.http_delete('api/alist/' + plname + '/' + index,'', function(responseText) { |
| | | // DELETE http://localhost:9090/mz/api/alist/liste1/0 |
| | | //self.meldung_mit_timeout(responseText, 1500); |
| | | if(self.playingList === plname) { |
| | | if(self.playingIndex > index) { |
| | | --self.playingIndex; |
| | | } |
| | | } |
| | | self.titel_liste(); |
| | | }); |
| | | |