forked from rc/aircox
		
	fix stuff; sound inline in admin
This commit is contained in:
		@ -38,8 +38,7 @@ export default {
 | 
				
			|||||||
    data() {
 | 
					    data() {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            state: State.paused,
 | 
					            state: State.paused,
 | 
				
			||||||
            liveInfo: this.liveInfoUrl ? new LiveInfo(this.liveInfoUrl, this.liveInfoTimeout)
 | 
					            liveInfo: new LiveInfo(this.liveInfoUrl, this.liveInfoTimeout),
 | 
				
			||||||
                                       : null,
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -56,7 +55,7 @@ export default {
 | 
				
			|||||||
        loading() { return this.state == State.loading; },
 | 
					        loading() { return this.state == State.loading; },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        onAir() {
 | 
					        onAir() {
 | 
				
			||||||
            return this.liveInfo && this.liveInfo.items && this.liveInfo.items[0];
 | 
					            return this.liveInfo.items && this.liveInfo.items[0];
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        buttonStyle() {
 | 
					        buttonStyle() {
 | 
				
			||||||
@ -84,6 +83,7 @@ export default {
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        toggle() {
 | 
					        toggle() {
 | 
				
			||||||
 | 
					            console.log('tooogle', this.paused, '-', this.$refs.audio.src)
 | 
				
			||||||
            if(this.paused)
 | 
					            if(this.paused)
 | 
				
			||||||
                this.play()
 | 
					                this.play()
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
@ -97,11 +97,11 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mounted() {
 | 
					    mounted() {
 | 
				
			||||||
        this.liveInfo && this.liveInfo.refresh()
 | 
					        this.liveInfo.refresh()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    destroyed() {
 | 
					    destroyed() {
 | 
				
			||||||
        this.liveInfo && this.liveInfo.drop()
 | 
					        this.liveInfo.drop()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user