Adding audio playback speed control, updating volume control UI, fix stream play for small streams

This commit is contained in:
advplyr 2021-08-20 18:29:10 -05:00
parent 506f16c431
commit 744aacbb4b
13 changed files with 192 additions and 211 deletions

View file

@ -92,8 +92,11 @@ export default {
streamProgress(data) {
if (!data.numSegments) return
var chunks = data.chunks
console.log(`[STREAM-CONTAINER] Stream Progress ${data.percent}`)
if (this.$refs.audioPlayer) {
this.$refs.audioPlayer.setChunksReady(chunks, data.numSegments)
} else {
console.error('No Audio Ref')
}
},
streamOpen(stream) {
@ -101,6 +104,8 @@ export default {
if (this.$refs.audioPlayer) {
console.log('[STREAM-CONTAINER] streamOpen', stream)
this.openStream()
} else {
console.error('No Audio Ref')
}
},
streamClosed(streamId) {
@ -111,8 +116,11 @@ export default {
}
},
streamReady() {
console.log(`[STREAM-CONTAINER] Stream Ready`)
if (this.$refs.audioPlayer) {
this.$refs.audioPlayer.setStreamReady()
} else {
console.error('No Audio Ref')
}
},
updateTime(currentTime) {